Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help in SPPC!


mbarata

Recommended Posts

Hi there, I have been trying to finish an OSC website that someone I payed for, did not finish. In fact the only mod I asked and payed for is the one he could not do.

 

I must refer that I am new to PHP but I'm learning and I have been able to modify the standard OSC that was delivered to me by that person in several ways (design and some contributions I have installed).

 

The only problem is is the SPPC. I requested a SPPC that should work like this: the product table has a field called "discount type" and so has the customer table, and then there is a table that crosses those fields like this:

 

customer type--> 1___2___3___4___5___6___7 ...

product type 1___ 0% 0% 0% 0% 0% 10% 20%

product type 2___ 0% 0% 0% 0% 0% 10% 20%

product type 3___ 0% 0% 30% 0% 0% 0% 20%

product type 4___ 0% 0% 0% 0% 0% 0% 0%

product type 5___ 0% 0% 0% 0% 0% 10% 0%

product type 6___ 0% 20% 0% 0% 0% 0% 20%

product type 7___ 0% 0% 0% 0% 0% 10% 0%

...

 

so the customer type 6 has a 10% disc. on a product type 1, 2, 5 and 7 but has no disc. on product type 3, 4 and 6.

If the customer is type "0" (wich is not in the above table), there are no discounts and the store is working fine. If the customer is type different from "0":

in the product_info.php the price is well calculated and displayed. When I click on the add to cart button, the first item that I add has the right price, the other items that I add next appear with the same price as the first on in the cart except if the item is in the specials.php.

 

Does anyone have an idea, at least where should I look.

Regards to all

Miguel Barata

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...