snakes Posted August 31, 2005 Share Posted August 31, 2005 Hi there, I'm developping a computer store and need to add new fields to the customers_basket table. The e-shop will have a full computer station wizard that will help the customer to select every component of a computer: CPU, Mother board, hard disk, memory etc... and then the customer will add thoses component into the cart. The fact is I don't want station's component to be lost among non station's one. Thus I need to add two fields: config_name and component_type. config_name will be the same for every component of the same station, and component_type is a number that tell me if the component is a CPU, mother board or other. When the customer is logged, no pb, the modified add_cart() function will add the additionnal informations. But when not logged, the components are added into the session table but the additionnal informations are lost. My module only call add_cart() to add to the basket. But in the add_cart() function I can't find out where they are inserting to the session table if not logged! So my question is where is located the code that do the insert into the session table. And how can I change that to work for my needs. Thank you Link to comment Share on other sites More sharing options...
M-Pro Posted August 31, 2005 Share Posted August 31, 2005 If you look at these two files, I think it'll get you started in the right direction catalog/includes/application_top.php look for the references to cart catalog/includes/classes/shopiing_cart.php Application sounds interesting - good luck M-Pro Link to comment Share on other sites More sharing options...
snakes Posted August 31, 2005 Author Share Posted August 31, 2005 If you look at these two files, I think it'll get you started in the right directioncatalog/includes/application_top.php look for the references to cart catalog/includes/classes/shopiing_cart.php Application sounds interesting - good luck M-Pro <{POST_SNAPBACK}> Okie thanks. I'm already on thoses files but oscommerce has so much file that are linked together that it is difficult to find a feature. For the moment I'm working on logged user and have to modify the basket template to make it displays non-station block and in-station block. Thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.