Many Opencart users must be aware of this awful problem of Opencart, you can add a product which is out of stock. But you will not be allowed to checkout, which is completely frustrating to the users/shoppers. Recently i was working on an Opencart site and thought of fixing this problem. I was able to fix it without much sweat.
I am sharing it for all those Opencart users who wants to change the Add to Cart button to Out of Stock, for products which are not available.

Rule of the Thumb: Backup the said file before doing anything, in case anything bad happens.

Fire up your FTP program or your cPanel, and then open the following php file

/public_html/catalog/view/theme/emanipur/template/product/product.tpl

Please note that the theme name will differ from site to site. For this tutorial, i am using emanipur as the theme name.

After opening that file, find the Add to cart button which is somewhat like this 

<input type="button" value="<?php echo $button_cart; ?>" id="button-cart" class="button cart-product" />

Please note that the button Id and class may be different for your theme. The only thing you need to look out is the $button_cart value.

Now, remove the above lines and change with the following slightly modified code

<?php if ($stock == "In Stock")
     {
          ?>
               <input type="button" value="<?php echo $button_cart; ?>" id="button-cart" class="button cart-product" />
         <?php }
               else
                  {
           ?>
              <a class="button" style="font-size:16px;">Out of Stock</a>
         <?php
                  }
          ?>

That's it. Now instead of that Add to Cart button, it will be replaced by Out of Stock button/text.
Please remember that i am using my own button class for the Out of Stock button, you can create or use your own class to suit your theme appearance.

Feel free to contact us, if you have any problems.
Published in eManipur! Blog
Virtuemart Slogan Blue
You can  migrate Virtuemart 1.1.9 to Virtuemart 2.x.x without losing any data like Products, Categories, Orders etc.. Yes, you hear it right.
Before you make any changes to your existing site, please make sure you make full backup of your site using Akeeba Backup or manual backup.
The most probable reason behind upgrading your site to 2.x.x is that you want to upgrade your Joomla 1.5 to 2.5 or higher(or maybe you want to use the latest version).
Ok, now lets get down to business.
Create media directory for new Virtuemart at /images/stories/virtuemart/ using an FTP program or via your Web hosting Control Panel. Now move/copy all your Virtuemart images located at /components/com_virtuemart/shop_image/ to the one created earlier that is , /images/stories/virtuemart/ .
Now rename or delete your Virtuemart component folder located at /components/com_virtuemart/ something like /components/com_virtuemart-old .
Disable all modules and plugins that are related to Virtuemart using the Extension> Modules Manager and Extension>Plugin Manager respectively.

If you are running Joomla 1.5 then please download Virtuemart.2.0.20b from Virtuemart's website(this is the version supported for Joomla 1.5). You will get two files in the download, one is the component and the other is the All in One Package which has all the modules and plugins.
Now install the downloaded component file via Joomla Extensions> Install/Uninstall.
If all goes well you will see a success message.. If anything goes wrong, uninstall Virtuemart and then install the new 2.x.x component again. It should work.

Now your shop is upgraded to VM2 but you will find that all your datas are lost. NO, we haven't migrated the datas yet.
To Migrate all your shop datas, go to your new Virtuemart Component and then on the left panel select Configuration > Configuration and then enable the option called "Enable database Update tools " located under the Shop tab

Virtuemart Database Upgrade

After enabling the Database Update tools, now navigate to Tools > Tools & Migration on the left panel. You will be presented with a screen like

Virtuemart Migration Tools

Now select Migration tab and then you will be presented with options to choose the type of data migration. You can just migrate Products, Orders, Categories etc only..
If you want to migrate everything select Choose a task for migration > Everything. Let the other option remain as it is or select any of the options to suit your need..
Now press the button called Start Migration, your migration time duration will depend on the number of products/categories you have. If your Migration is smooth, you will see a message from Virtuemart telling you that the migration has been completed. If this fail, please migrate each datas individually, like migrating products only and then categories, so on...
That's it. If you have any problem migrating your shop, do drop a comment we will try to help you out.
Published in eManipur! Blog
Sunday, 10 February 2013 16:24

Yuko Hair Straightening

Yuko HomeeManipur! developed Yuko Hair Straightening Site. YUKO is a unique Japanese innovation in Hair care and Straightening. This project was outsourced to us by HairBizSecret of Australia.

Details:

Web site: http://www.yukoqld.com.au/
Type: Website Designing, Website Maintenance
Technologies Used : LAMP, AJAX,CSS, JQuery,Flash
Authors: eManipur! Team
Published in eManipur Portfolio
Tuesday, 05 February 2013 10:11

Margarita Clip Shop

80 Margarita Clip ShopDesigned the eCommerce component of the site in Virtuemart. This was an outsourced project.

Details

Web site: http://www.margaritaclip.com/store/
Type: Website Designing
Technologies Used : LAMP, AJAX,CSS, JQuery.
Authors: eManipur! Team
Published in eManipur Portfolio
Page 1 of 2

Our Services

  • Web Design & UX Design
  • eCommerce sites
  • Social Media Marketing
  • Joomla Upgrade and troubleshooting
  • Blogging
  • Website Maintenance

Latest Offer from eManipur!

Joomla   Upgrade Your Old Joomla Website For Free*.
   For More Information click on the Link Below.

Upgrade Joomla

Drop in here

Keishamthong Elangbam Leikai,
Imphal -795001,
Manipur, India

Emanipur Location

Call

+91 97742 70 499

Subscribe to our Tips

Receive our tips and hacks right into your Inbox. We promise you, it will be be a unique experience for you.


Receive HTML?

Social Icon
Facebook    Linked In    Gplus     Twitter