Post by spikeachu » Sat Apr 10, 2010 4:11 am

Places an add to cart button on your related products so that the customer can add to cart without changing pages.
Fewer clicks, and help aid your impulse buys.

Ajax animation remains intact.

Where there are options available on the product, the link will default to normal behaviour and redirect to that product's page.

If you feel Improvements can be made, let me know.

Attachments

AddToCartOnRelated.jpg

AddToCartOnRelated.jpg (85.94 KiB) Viewed 9159 times


Wedding Invitations and Stationery by Love2print

Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds

Have I helped you out or saved you some time? Please donate


Active Member

Posts

Joined
Fri Mar 12, 2010 6:31 am

Post by rph » Sat Apr 10, 2010 11:25 am

Good job spikeachu. I'm surprised this thread isn't getting more responses. People are asking for this functionality all the time.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by jayson » Mon Apr 12, 2010 4:56 am

Thanks for the contribution. Will try it out today.

New member

Posts

Joined
Tue Feb 23, 2010 4:29 am

Post by Iwao » Thu Apr 15, 2010 3:19 am

Great contribution!
Thx a lot

Newbie

Posts

Joined
Wed Apr 14, 2010 1:10 am

Post by SXGuy » Sun Apr 18, 2010 6:12 pm

I had previously done this myself, but i dunno, after i had done it, i decided it looked abit messey so removed it.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by dramony » Wed May 05, 2010 1:39 pm

how about for OC 1.3.2?

i tried it but this is the error:
Error: Could not load model tool/image!

Active Member

Posts

Joined
Sat Oct 24, 2009 12:34 pm

Post by spikeachu » Fri May 07, 2010 4:52 am

I really don't have time to go through older versions of the cart and reprogram it to work.
Anything I contribute is what I program in the course of the project that I am currently working on which I think other people might find useful. I have no intention of maintaining the contributions for future releases unless one of my projects requires it.

I expect however, that if you replace the tool/image line with

$this->load->helper('image');

You might have some success.

Wedding Invitations and Stationery by Love2print

Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds

Have I helped you out or saved you some time? Please donate


Active Member

Posts

Joined
Fri Mar 12, 2010 6:31 am

Post by thetanpreclear » Wed May 12, 2010 12:56 pm

This contrib works without any flaw. It should be a default feature. Fantastic job!

I wanted to horizontally align the add-to-cart buttons (some prod titles are longer than the others), so I put the buttons directly underneath the thumbnails.

This contrib I do recommend to all. It has NO bugs whatsoever.

Thanks!

Preclear eBooksMedia made with Open Cart 1.4.6
http://www.preclear.net" onclick="window.open(this.href);return false;



Posts

Joined
Mon Apr 05, 2010 5:46 am


User avatar
Active Member

Posts

Joined
Fri Nov 27, 2009 3:40 pm
Location - Bangkok - Thailand

Post by mondy » Thu May 13, 2010 1:03 am

b"h

see my post

http://forum.opencart.com/viewtopic.php?f=23&t=14601" onclick="window.open(this.href);return false;


Mo

New member

Posts

Joined
Tue Nov 11, 2008 8:01 am

User avatar
Active Member

Posts

Joined
Fri Nov 27, 2009 3:40 pm
Location - Bangkok - Thailand

Post by American » Sat May 22, 2010 2:56 pm

Downloaded this twice. Using a couple of different zip utilities, can't get it to extract.

Attachments

2010-05-22_01-58.jpg

zip - 2010-05-22_01-58.jpg (20.25 KiB) Viewed 8877 times


Brad G
Granbury, Texas
OC 1.5.6.4


User avatar
New member

Posts

Joined
Fri May 21, 2010 7:39 am
Location - Fort Worth, Texas

Post by spikeachu » Sat May 22, 2010 4:31 pm

American wrote:Downloaded this twice. Using a couple of different zip utilities, can't get it to extract.
Seems that several files on the forum have become corrupt. I've uploaded it again in this post, hopefully it will be ok.

Attachments

Last edited by spikeachu on Sat May 22, 2010 6:25 pm, edited 1 time in total.

Wedding Invitations and Stationery by Love2print

Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds

Have I helped you out or saved you some time? Please donate


Active Member

Posts

Joined
Fri Mar 12, 2010 6:31 am

Post by American » Sat May 22, 2010 5:18 pm

Thanks, that extracted ok....but, I uploaded and it blew up my product pages:
Notice: Undefined index: template in /home/ststore/domains/store.sporttwin.com/public_html/catalog/controller/product/product.php on line 322Warning: require(/home/ststore/domains/store.sporttwin.com/public_html/catalog/view/theme/default/template/product/) [function.require]: failed to open stream: Success in /home/ststore/domains/store.sporttwin.com/public_html/system/engine/controller.php on line 67
Fatal error: require() [function.require]: Failed opening required '/home/ststore/domains/store.sporttwin.com/public_html/catalog/view/theme/default/template/product/' (include_path='.:/usr/local/lib/php') in /home/ststore/domains/store.sporttwin.com/public_html/system/engine/controller.php on line 67
I'm using 1.4.7.

Brad G
Granbury, Texas
OC 1.5.6.4


User avatar
New member

Posts

Joined
Fri May 21, 2010 7:39 am
Location - Fort Worth, Texas

Post by spikeachu » Sat May 22, 2010 6:27 pm

Ok, my bad.

I had subsequently edited the mod to fit around a cart that i'm developing.

Change line 322 of /catalog/controller/product/product.php

Code: Select all

$this->template = 'default/template/product/' . $this->data['template'];
to

Code: Select all

$this->template = 'default/template/product/product.tpl';
I think that should do the job.

Wedding Invitations and Stationery by Love2print

Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds

Have I helped you out or saved you some time? Please donate


Active Member

Posts

Joined
Fri Mar 12, 2010 6:31 am

Post by mttd » Fri Jun 25, 2010 3:15 am

Hi,

sorry i'm new to openCart.
I don't suppose you know how easy it is to add an add to cart button to the homepage for the products listed do you please?

cheers,
tom

Newbie

Posts

Joined
Fri Jun 25, 2010 3:13 am

Post by Qphoria » Fri Jun 25, 2010 3:18 am

This already exists in 1.4.8

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 10 guests