EzDevInfo.com

opencart

A free shopping cart system. OpenCart is an open source PHP-based online e-commerce solution. OpenCart - Open Source Shopping Cart Solution a free shopping cart system. opencart is an open source php-based online e-commerce solution.

Get parent category for product page Opencart

is there a way to get the parent category of a product, in the product page for Opencart? Thanks


Source: (StackOverflow)

How do i create a template for OpenCart?

I am new to OpenCart, and i would like to apply my theme to opencart. i know i should not edit the default template directly, then how do i copy the default template files and alter it to apply the theme?

Thanks a lot, Balan


Source: (StackOverflow)

Advertisements

How to make a simple module in OpenCart? Example getting latest posts from Wordpress and showing it in OpenCart?

I am new to this forum and as well as to OpenCart.

I need help on creating a module in OpenCart. In my case it will get the latest 5 posts from each category of my WordPress installation and display it in my home page of my OpenCart store.

I have already installed OpenCart and WordPress in same database on the same host.

Can someone advice me on this?


Source: (StackOverflow)

OpenCart resources [closed]

I'm trying to develop an understanding of how to build things using OpenCart, but their documentation seem to bit on the conservative side. Do the stackoverflow community have suggestions for reading material.

This question is in spirit related to:


Source: (StackOverflow)

How to become an OpenCart guru?

It seems like they have no documentation except some api calls on their official forums. I have experience with Zend framework and CodeIgniter framework. Can any OpenCart masters recommend me the best way to learn it and master in shortest amount of time? I have to do a big project with it soon.


Source: (StackOverflow)

Magento vs OpenCart [closed]

I am going to make a demo e-commerce web site but I need to separate the clients after they register into individual clients and business clients, the individual clients will see single products and their prices but the business clients will see products in a large package with their price. I looked into the magento code but it felt a lot more complicated than OpenCart to program it to work this way. I am newcomer into the ecommerce area that is why I am asking you which should I choose, which one is better? What are your recommendations?

Thank you for your time and help


Source: (StackOverflow)

Subscription of products on AceShop (Joomla extension for OpenCart) [closed]

I am trying to modify AceShop module (extension OpenCart in Joomla) such that subscription facility is provided to users on some specific products. The default functionality of AceShop is straightforward one-time order, but I want my shop to have some specific products that can be subscribed by the user as well. I know that payment gateways like Paypal and Authorize.net provide subscription facility, but I want my shop to keep track of those subscribed products, so that notification is sent to the subscribed users 5 days prior to their order that needs to be shipped and hence they could change the subscription details.

In case of credit card charging gets failed, user is informed and if the subscription is still placed, system again tries to charge from the credit card after some defined period. Order completion invoice is sent each time the credit card gets charged, not for the first time only.

Out of confusion, I want to know if there is a way to do, and I am thinking in a right direction.

Worse thing is that AceShop documentation is only available for people who have a paid subscription. http://www.joomace.net/support/docs/aceshop


Source: (StackOverflow)

How can i change opencart order email content as our wish ? is it possible?

Can I change the content of order email, which file it exactly refers? This is a confirmation of an online transaction placed with ######. The AuthOnly transaction totaled $171.90 and will be processed to your account.

Order Number  : 10372    Approval Code : 321321 This content to This

ORDER CONFIRMATION
SUBJECT:
• Your host.com order #XXXXXXX
EMAIL MESSAGE:
• Howdy, (customer name) :
Thank you for ordering from #### We received your order (XXXXXXXX) on (00/00/00). Your work is currently being handled with the utmost care by one of the crew members. We will let you know when it’s on its way! Please visit us again soon.

Your order includes the following item(s):

Description – product
Quantity & Price – 1 @ $29.99
Shipping Method – Standard FREE

Subtotal – $29.99
Sales Tax – $ 2.10

Order Total – $32.09

Over & out,
the SSSSSS crew

thank you!

Source: (StackOverflow)

Opencart - Search regardless accent

It had been written many times already that Opencart's basic search isn't good enough .. Well, I have came across this issue:

When customer searches product in my country (Slovakia (UTF8)) he probably won't use diacritics. So he/she writes down "cucoriedka" and found nothing.

But, there is product named "čučoriedka" in database and I want it to display too, since that's what he was looking for.

Do you have an idea how to get this work? The simple the better!


Source: (StackOverflow)

Why does the OpenCart SubTotal and Order Total are appear twice?

I have OpenCart installed. The cart page shows Total and Subtotal twice. It will not show the final Total too. The gift voucher is also appearing even if a customer has not added it to their cart. Is their a solution? Do I need to edit my settings in the Admin?


Source: (StackOverflow)

Twitter Bootstrap Tabs Using foreach On Opencart

I want change tabs on opencart (admin view) with twitter bootstrap 3.0, the code following :

catalog_form.tpl

 <ul id="myTab" class="nav nav-tabs">
   <li class="active"><a rel='nofollow' href="#tab-general" data-toggle="tab"><?php echo $tab_general; ?></a></li>
   <li class=""><a rel='nofollow' href="#tab-data" data-toggle="tab"><?php echo $tab_data; ?></a></li>
   <li class=""><a rel='nofollow' href="#tab-design" data-toggle="tab"><?php echo $tab_design; ?></a></li>
</ul>

<div id="myTabContent" class="tab-content">
  <div id="tab-general" class="tab-pane fade active in"> 

  <ul id="languages" class="nav nav-tabs">
    <?php $i = 0; ?>
      <?php foreach ($languages as $language) { ?>
         <li class="<?php if ($i == 0) { echo 'active'; } ?>"> 
            <a rel='nofollow' href="#language<?php echo $language['language_id']; ?>" data-toggle="tab"><img src="view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" /> <?php echo $language['name']; ?></a>
        </li>
      <?php $i++; } ?>
  </ul>
  <div id="Mylanguages" class="tab-content">
    <?php $a = 0; ?>
    <?php foreach ($languages as $language) { ?>
      <div id="language<?php echo $language['language_id']; ?>" class="tab-pane fade <?php if ($a == 0) { echo 'active'; } ?> in">
      <?php echo $language['language_content']; ?>
      </div>
    <?php $a++; } ?> 
  </div>

  </div>
  <div id="tab-data" class="tab-pane fade">
   ...
  </div>
  <div id="tab-design" class="tab-pane fade">
   ...
  </div>
</div>

Parent tabs (tab-general, tab-data, tab-design) without foreach work perfectly

First reload, language 1 is active tab

enter image description here

When click language 2's tab

  • link #language2 tag have selected class
  • div tag with id language2 have display block but not have active class
  • language 1 li still have active class but language 2 li have not active class.

enter image description here

When I try copy html (via inspect element) and make on jsfiddle (modify content not html tag) it's works perfectly. Jsfiddle


Source: (StackOverflow)

OpenCart: Where is the div for the drop down header cart info?

I am trying to style OpenCart but am having difficulty finding which TPL file holds the div that appears when you click the Shopping Cart icon in the header (the 'mini cart' that slides down - it allows you to view what's in your cart without going to the cart page).

Does anyone know where I can find the .tpl file that has this div (in the default structure template)? Thanks

enter image description here


Source: (StackOverflow)

Enable SEO URLs on multi stores and subdomains on OpenCart using Nginx

I am trying to get SEO URLs working across multi-stores in OpenCart.

I have two stores in the admin

http://www.shop.com (default)
http://m.shop.com

SEO URLs work for http://www.shop.com But they return a not_found.tpl (the 404 page) for the http://m.shop.com

This works however:

http://m.shop.com/index.php?route=product/product&path=68&product_id=52

SEO wise, it should be

/index.php?route=product/product&path=68&product_id=52

http://www.shop.com/product-title
http://m.shop.com/product-title (404 returned)

I am using NGINX. This is the config:

www.shop.com

server {
    server_name  www.shop.com;
    listen 80;
    root /var/www/www.shop.com/;
    index index.php index.html;
    location /image/data {
        autoindex on;
    }
    location / {
        try_files $uri @opencart;       
    }
    location @opencart {
        rewrite ^/(.+)$ /index.php?_route_=$1 last;
    }
    location ~ \.php$ {
        try_files $uri =404;
        include /etc/nginx/fastcgi_params;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

m.shop.com

server {
    server_name  m.shop.com;
    listen 80;
    root /var/www/www.shop.com/;
    index index.php index.html;
    location /image/data {
        autoindex on;
    }
    location / {
        try_files $uri @opencart;       
    }
    location @opencart {
        rewrite ^/(.+)$ /index.php?_route_=$1 last;
    }
    location ~ \.php$ {
        try_files $uri =404;
        include /etc/nginx/fastcgi_params;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

Source: (StackOverflow)

OpenCart: Add left column (contain categories etc) on Default page

I want to add the 'Left Column' (categories etc) in the default page. I see that the left panel is exists on the product pages but missing from the default page. Please see the screen shot. Please suggest.


Source: (StackOverflow)

Opencart thumbnail size

I've just started to work with opencart so I don't very much. I want to change the thumbnail size of my products to a bigger size. So, I've researched on Google and an answer came up. Go to System>Settings, Edit Store and under the Image tab, choose the size I want. The thing is, that is not working and I don't know why. For example, on Best Sellers or on Featured Products, the thumbnail size is always the same, 80x80.

Any help?

Tiago Castro


Source: (StackOverflow)