Jump to content



Member Since 27 Jan 2009
Offline Last Active Nov 18 2013 12:07 AM

Topics I've Started

Addon losing Data? Being overwritten?

26 April 2013 - 04:49 PM

I have a strange problem that is making me crazy, and I'm hoping that someone might be able to help, or at least give me some tips on how to trouble shoot this problem.

I followed tbirnseth's "PHP controllers" tutorial and created a very simple add-on that allows me to store a warehouse location code for each product. The addon uses a database table with two columns, a product id and a location string. It couldn't be simpler, and it seems to work fine. However, i have been observing that products where i know (for certain) there was a location saved, have no location set anymore. It seems like there are only a couple of things that could be happening, but i"m not sure how to troubleshoot them. here's what i'm thinking:

1. the locations are linked by product id, so if the product id changed, the location would become unlinked. -- Is there any reason that cscart would change the product id?

2. when the product info is pulled to populate the manage product page, the location table my not be getting queried correctly, and then when the product is re-saved, it's getting "overwritten" with no info. --I don't see how this could be the case, because i have observed it working normally every time i edit a product.

I'm stumped. Any ideas?

A way to pull related products automatically?

14 May 2012 - 11:38 PM

I'm looking for a solution or add-on to allow me to have a block on the product page that will show similar products automatically. Has anyone developed a solution for something like this?

*I realize that you can do this manually with the related products block. This is not what I'm looking for.

It doesn't have to be fancy, these would be my basic requirements:

1. Show other products from the same (sub)category (as the product on the page being viewed).

2. Choose the number of similar products to display

3. Give priority to products based on an abitrary product feature (like manufacturer, would be very usefull)

Obviously this could be much more complex, but for now, I just need something that gets this accomplished. Surely something like this exists in some form or another.

Thanks for reading!