Uncaught TypeError: Object [object Object] has no method ‘live’ in Opencart when using jquery-2.1.0.min.js

Today we were working on the latest version of the jquery-2.1.0.min.js because our client sliced with the use of it. And we got the error because of the upper version and some method gets deprecated like Uncaught TypeError: Object [object Object] has no method ‘live’ as the live method is deprecated and removed from version 1.9 so need to change it to ‘on’. Thus we changed all .live into .on

We have also removed all the msie also $.browser.msie which was showing error like Uncaught TypeError: Cannot read property ‘msie’ of undefined

We have updated the catalog/view/theme/default/template/checkout/checkout.tpl and catalogviewjavascript/common.js

We need to update other files also product.tpl, register.tpl, cart.tpl, etc

Once you replace “.live” into “.on”, you will be able to remove the error.

Please let us know if you have any questions or suggestions, please subscribe to our YouTube Channel for Opencart video tutorials. You can also find us on Twitter and Facebook. Enjoy!

Opencart error xmlParseEntityRef: no name, rendering of the page

In Opencart we got the following error when we activated the Google Sitemap from Extensions>> Product Feed, then when we visited the google sitemap URL like Google Sitemap http://webocreation.com/index.php?route=feed/google_sitemap

This page contains the following errors:
error on line 1 at column 5844: xmlParseEntityRef: no name
Below is a rendering of the page up to the first error

xmlParseEntityRef: no name
xmlParseEntityRef: no name

How to remove it?

Go to PHPMyAdmin of the site and choose the database that you are using and in the oc_url_alias table, “oc_ is the prefix of the table”, search for the & and replace with something else like ‘-‘ or ‘_’ etc and the above error will be removed.

Let me know if you get something else and for support.

SEO URL’s activated for OpenCart at localhost

As opencart uses the SEO URL but we found most of the programmers are not using it in localhost, so today we are showing how to enable URL redirect in OpenCart in localhost. To use SEO URLs, the apache module mod-rewrite must be installed and you need to rename the htaccess.txt to .htaccess.

Enabling .htaccess in Xampp

Open the httpd.conf file with your favorite text editor. In XAMPP, this file is found in the apache/conf directory (or /LAMP/etc in Linux)

Locate the following line of code:

#LoadModule rewrite_module modules/mod_rewrite.so

Remove the # from the line as seen below to enable the module:

LoadModule rewrite_module modules/mod_rewrite.so

Save the Httpd.conf file

Restart your Apache Server

Now in the opencart admin activate SEO URL from

Admin>>System >> Setting >> Edit your store >>then at Server tab >> Enabled the SEO URL.

After that rename the .htaccess.txt to .htaccess

Now if your SEO URL does not work then find RewriteBase / / in .htaccess file and add folder name between slashes.

For eg: if your folder name inside the Htdocs is YOURSTORENAME then it will be

RewriteBase / YOURSTORENAME /

Make url redirect in opencart at localhost
Make URL redirect in opencart at localhost

Then save and you will be able to work with the SEO URLs in localhost

We hope this opencart tutorial helps you understand the affiliate flow of Opencart 3. Let us know if you have any questions or suggestions, please subscribe to our YouTube Channel for Opencart video tutorials. You can also find us on Twitter and Facebook.

How to remove Vqmod conflicts successfully, solutions for Opencart

When we performed work at the scubattokki.com we have to remove Vqmod conflicts successfully for Opencart version 2. Some of the works we did are:

  • Remove the VqMOD conflict in opencart.
  • Checkout Steps decreased to two steps.
  • Registration pages change and address field changes
  • Korean Language translations
  • Many other small changes

How do we remove the VqMOD conflict?

They have used VqMOD like remove-add-to-cart-if-out-of-stock.xml, auto-reviews.xml,  disable_affiliate.xml,  ev_GridDefault.xml, featured-product-plus.xml, google_analytics_expert.xml, inmuto_hide_downloads.xml, inmuto_hide_wishlist.xml, remove-add-to-cart-if-out-of-stock.xml and many others like disabling captcha, etc

As they have used many VqMOD XML which changes the lines of codes and the remaining one does not find the code lines and occurs conflict likewise made the modifications on email format.

We checked what error is logged atVqMOD/logs and the files as per the day as we were working on Sunday so we checked at sun.log and find out what is the error and what search not found is logged. By this, we can know which XML is affected and we changed the code as per the requirement at a definite place to remove the conflict by this we were able to solve the conflict of VqMOD.

We have worked on the two-step quick checkout so that customers can easily check out by clicking only two clicks.

We have made many language changes as well as many CSS and registration page changes to hide the country, city, zone as he did not need them as all clients are from the locality.

About Scuba Bunny http://scubattokki.com/

Scuba Bunny
Scuba Bunny http://scubattokki.com/

At Scuba Bunny http://scubattokki.com/, they search the world for the best quality scuba equipment at the best prices. Why are our prices so low? We import all our products directly from our suppliers in the USA and Italy. With no middleman, we pass the savings on to you! All items at Scuba Bunny are guaranteed to be brand new, original brand name products. All products come with original serial numbers and full warranty certificates.

Let us know if you have any requirements.

Simple Product Management System in Java

0

Hi,

Just started learning Java and have made simple product management system and hope it will be broadened to e-commerce system 🙂

I have uploaded the files at bitbucket.org and maintain the versions 🙂

Get details from the bitbucket https://bitbucket.org/rupaknpl/basic-java-ecommerce-class-project

Download the project

download button

I will soon write the description so that it will be helpful to understand the codes.

2000th title of Packt Publishing are launching an exciting campaign until 26th Mar 2014

0

2000th-Book-Home-Page-Banner
2000th-Book-Home-Page-Banner

Let’s enjoy the campaign

Packt Publishing is launching an exciting campaign to coincide with the release of their 2000th title. During this offer, Packt is giving all its customers a chance to enjoy their books by giving them a free e-book copy for every purchase.

The campaign began on 18th March and will continue up until 26th Mar 2014.

You can find out who is using this offers by the social media hashtags #packt2k

Like for facebook, it is https://www.facebook.com/hashtag/packt2k, similar for the twitter and google plus.

If you want to excel in the OpenCart then you can get the following book

Getting Started With Opencart Module Development
Getting Started With Opencart Module Development

Combined Checkout steps, shipping and payment addresses and methods on Opencart

Today we completed two works to decrease the checkout steps where we have to combine the shipping and payment address at one as well as shipping and payment methods at another and transfer the shipping estimate to the shipping methods on the checkout step.

We made the shipping estimate on VqMOD and now the next work is to combine the checkout steps. Combine the shipping address and payment address at one step and shipping methods and payment methods on other steps.

checkout steps decreased
checkout_steps_decreased

When the customer has logged in and checkout then it will show Step 2: Billing Details and Delivery Details, if the customer likes to change the address then he has to insert the new address and choose from the select list. After clicking continue it will redirect to Step 3: Delivery Method and Payment Method, where he has to choose the delivery method and the payment method. Then on clicking the continue, it will redirect to the confirmed section.

checkout steps payment and shipping
checkout_steps_payment_and_shipping

If the products don’t have the shipping then no shipping address and shipping methods are shown.

Similarly, it works for the guest checkout.

Send me an email if you like similar work from the contact us form

Show Google Map at the contact us page and as module Opencart e-Commerce website

We are showing how to add Google Maps for opencart for free and show Google Maps on the contact us page and a module in the Opencart eCommerce website. This module works with VqMOD, if you like to manually insert the code read the post below which we will show how to do them.

First, we like to show how to pin or add your shop locations on google maps. Go to http://www.google.com/mapmaker and search for the popular place near yours and zoom in to the map and see your exact location.

add your location to google map
add your location to google map

Now click on the ADD NEW button and insert click to add the place and locate the red pin to your exact location and then insert the description as per required and SAVE. You can insert the phone, website, category, working hours, payment types, and so on.

Now go to https://www.google.com/maps and search for your place and locate your place and pinned location. Google Maps will not instantly show your recently inserted location or shop. When you find your shop or location, then click on the red pin and it shows the details after that click on the link icon at the right (see the red box in the image below)

Google map at the opencart store
how to show the shop at the google map

Now find the HTML code and paste it into our contact google map module.

Now time to download the module and upload it to the respective directory.

Download Google Map Module Demo of Google Map

INSTALLATION OF FILES:

1 Unzip in the folder.
2 Upload the files inside the googlemap folder to your OpenCart root folder.
3 In admin, go to Extension>> Module >>Google Map and install the module and edit.

Now time to insert the iframe HTML code that we get from the Google Map from above. Please edit the iframe width to 100% and height as per your requirement.

For mine code looks like below

<iframe width=”100%” height=”350″ frameborder=”0″ scrolling=”no” marginheight=”0″ marginwidth=”0″ src=”https://www.google.com/maps/ms?msa=0&amp;msid=215707624648835363542.0004d48fa8b68dbc004b0&amp;ie=UTF8&amp;ll=27.597546,85.521119&amp;spn=0,0&amp;t=h&amp;iwloc=0004d48fa8bb305cc3dfb&amp;output=embed”></iframe><br /><small>View <a href=”https://www.google.com/maps/ms?msa=0&amp;msid=215707624648835363542.0004d48fa8b68dbc004b0&amp;ie=UTF8&amp;ll=27.597546,85.521119&amp;spn=0,0&amp;t=h&amp;iwloc=0004d48fa8bb305cc3dfb&amp;source=embed” style=”color:#0000FF;text-align:left”>opencartnepal.com</a> in a larger map</small>

Then add the module to where you like to show in the layout. One of the interesting things of this module is that it will show google map  in the contact us page just below the details of the contact.

Vqmod is needed to show the google map at the contact us page. If you don’t like to show it at the contact us page then you have to delete the googlemap.xml at the VqMOD and install the module pack. If you don’t have the v=VqMOD and like to show the google map at the contact us page then you can easily use the module set to show at the contact layout.

COPYRIGHT:

This module code is the intellectual property of mine as an Opensource code you are entitled to use it freely and modify it if you wish but please keep the credits intact.

Bulk transfer of Products, categories and manufacturer between stores on Opencart Ecommerce Store

Bulk transfer of products, categories, and manufacturers to stores on Opencart eCommerce store

If you have already inserted the products and want to add the store in the Opencart eCommerce store, after this transferring the products to the store is quite tedious. You have to go to each product and check for the store and click save, to remove this tediousness, we have created the bulk transfer of products which helps in transferring the products between the stores of Opencart eCommerce.

INSTALLATION OF FILES:

1 Unzip in the folder.
2 Upload the files inside the bulk_transfer folder to your OpenCart root folder.
3 In admin, go to Catalog >> Bulk Category Transfer or Catalog >> Bulk Product Transfer or Catalog >> Bulk Manufacturer Transfer
4 vQmod is needed for the backend to see the Catalog >> Bulk Category Transfer etc

If you don’t have the vQmod installed then you have to insert the following lines at admin/view/template/common/header.tpl

<li><a href=”index.php?route=catalog/portal_category&token=<?php echo $this->session->data[‘token’]; ?>”>Bulk Category Transfer</a></li>
<li><a href=”index.php?route=catalog/portal_instructor&token=<?php echo $this->session->data[‘token’]; ?>”>Bulk Manufacturer Transfer</a></li>
<li><a href=”index.php?route=catalog/portal_product&token=<?php echo $this->session->data[‘token’]; ?>”>Bulk Product Transfer</a></li>

Just below the

<li><a href=”<?php echo $information; ?>”><?php echo $text_information; ?></a></li>

and you will see the Catalog >> Bulk Category Transfer or Catalog >> Bulk Product Transfer or Catalog >> Bulk Manufacturer Transfer

5. When you click the Catalog >> Bulk Category Transfer, you will see two list of stores

product, categories and manufacturer bulk transfer in Opencart

Portal 1 or store 1 is from where you are copying the categories and portal 2 or store 2 is to where you are copying the categories.

After choosing the portals or stores, you will be able to see the list of categories that are not already in portal 2.

For eg. if Desktop is already in portal 2 then it will not show in the list.

If you don’t want to transfer some of the category then unchecked the checkbox and click save. Unchecked will not be transferred.

Bulk transfer categories in Opencart

In the above figure the software, laptops and notebooks and components are not transferred to the portal 2 or store 2

By this same process, we can transfer products and manufacturers.

If you get the following message

Permission Denied!

You do not have permission to access this page, please refer to your system administrator.

====

Go to the System >> Users >> User Groups and edit the Top Administrator and then check as in the figure:

permission opencart

permission for bulk transfer

It means we have to give permission to catalog/portal_category, catalog/portal_instructor, catalog/portal_product.

SEE MORE: Opencart Extension for free

Show the first four categories in the menu in OpenCart

Today we provide support to Opencart forum that someone appreciates my work as we have helped him with his e-commerce designs to show the first four menu items in Opencart.

We simply changed the code and posted it on the forum and his reply was:

You, my friend, are a legend! That is exactly what I was looking for. Thank you so much! its really appreciated. I just checked out your website, some useful information on there, bookmarked 

What was the problem and how I solved it?

Solution:

<?php if ($categories) { ?>
<div id="menu">
<ul>
<?php foreach ($categories as $key=>$category) { if($key<4){ ?>
<li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
<?php if ($category['children']) { ?>
<div>
<?php for ($i = 0; $i < count($category['children']);) { ?>
<ul>
<?php $j = $i + ceil(count($category['children']) / $category['column']); ?>
<?php for (; $i < $j; $i++) { ?>
<?php if (isset($category['children'][$i])) { ?>
<li><a href="<?php echo $category['children'][$i]['href']; ?>"><?php echo $category['children'][$i]['name']; ?></a></li>
<?php } ?>
<?php } ?>
</ul>
<?php } ?>
</div>
<?php } ?>
</li>
<?php } } ?>
</ul>
</div>
<?php } ?>

Changes done are bolded.