Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping cart process


gavk

Recommended Posts

Posted

Hi guys,

 

I am making my own bespokse 'contribution' for a discount in regards to discounting for a clients site, when I click the 'add to cart' button it redirects me to the shopping_cart.php page - can someone explain to me where exactly in the code it does this redirect to the shopping_cart.php as I cannot find this anywhere.

 

I need this so I can do some changes to the price of the item added to the cart, eg if a discount of 50% applicable do the following discount to that item price (eg $price = $price *0.50) - I would use the existing contributions on this site but the discount requirements are very bespoke so making my own is probably better in the long run.

 

If anyone could help that would be greatly appreciated thanks!

Posted

application_top.php

 

Would suggest that you use an existing contribution as discount coupons is probably one of the more difficult things to code - you need to look at order_totals and ot_tax as well as making a system for applying the discount.

Posted
... I click the 'add to cart' button it redirects me to the shopping_cart.php page - can someone explain to me where exactly in the code it does this redirect to the shopping_cart.php...

 

if you can make a bespoke discount module then i suppose you know all where-abouts. with regard to the shopping cart display or not, it is simply a settting in configuration - my store. being displayed or hidden is not that relevant to what you want to do. you still need to make the underlying code changes.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...