Post by mikeytrw » Wed Oct 29, 2008 6:29 pm

Hi,

I am looking into developing a contrib that allows the cart owner to manually associate products with other products, for example if a customer views a laptop, they would see laptop bags, spare batteries etc on the product view page.

From what I can see this will be a modification of the 'product' controllers and I want this mod to be usable by everyone in the future, is version 0.8/1.0 going to change drastically this part of the codebase and make this incompatible?

thanks

New member

Posts

Joined
Tue May 27, 2008 9:28 pm

Post by jty » Wed Oct 29, 2008 7:42 pm

Have you seen this thread?
http://forum.opencart.com/index.php/topic,1244.0.html
I don't know if it works but it's a start

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Qphoria » Wed Oct 29, 2008 7:46 pm

I was also thinking about adding this to the todo list for 0.8. Cross Selling is always good for business

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mikeytrw » Wed Oct 29, 2008 8:31 pm

OK by the looks of that other thread, this has been done before.

Havent installed it, but a quick look at the controllers show that this will need updating to work with 0.7.9-RC3.

I'll make the neccessary changes and re-post the contrib once its working.

Thanks

New member

Posts

Joined
Tue May 27, 2008 9:28 pm

Post by mikeytrw » Wed Oct 29, 2008 11:33 pm

OK,

Ive updated the files in the contrib and stuck in an install note with the SQL import.

Seems to be working great on my 0.7.9-RC3 install.  ;D

I changed it so that related products appear with images and price, and a max of 4 products can be associated (for styling reasons more than anything  :P)

Attachments


New member

Posts

Joined
Tue May 27, 2008 9:28 pm

Post by Qphoria » Thu Oct 30, 2008 12:08 am

Nice work mikey!

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by jty » Thu Oct 30, 2008 11:41 am

That was quick. Would you like to do another one? heehee  :D
Thank-you

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by mikeytrw » Thu Oct 30, 2008 5:52 pm

Hey theres a wee break in the template,

When no related products there is a missing closing tag,

Line 62 onwards should read:

Code: Select all

  <?php if(count($related)>0){?>  	
   <div class="left">Related Products</div>   	
  <?}?>
  </div> 
Here is the new file...

New member

Posts

Joined
Tue May 27, 2008 9:28 pm
Who is online

Users browsing this forum: No registered users and 35 guests