You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Pages: 1
Hi there,
I'm fairly new to CCP.
I would like to offer some of my customers a certain percentage discount (either 10% or 15% depending on the customer) on their ink cartridge purchases at wwwukinksupplies.com. Is there a simple and easy way to do this in the existing admin?
Thank you,
Mark
wwwukinksupplies.com
Offline
A custom sales method could be written to do that (Home > ClickCartPro (GBU) > Commerce: Orders and Checkout > Manage Custom Sale Methods)
Offline
Thank you Dave,
Possibly a bit beyond me. I don't do programming at all.
But thanks anyway.
Mark.
wwwukinksupplies.com
Offline
Dave, any suggestions who could write it?
Mark
wwwukinksupplies.com
Offline
Search around here in the fora and you'll find a lot of examples. One will likely be close to what you are looking for. The samples provided should be very simple to modify too even without doing any programming. There are a number of us "regulars" who could do it for you as well as Kryptronic.
Offline
Cheers Dave,
I've found some references to applying various percentage discounts (to any customer that purchases) but I am not sure how to apply it to a particular group of users. I have set up a user group called "UKInk10", which currently contains my second email address for testing purposes.
Mark
wwwukinksupplies.com
Offline
You can get the current customers user group with this line
$user = $this->globals('core_user.usergroup');
and then run a check like
if ($user == 'UKink10') { // some more code } // End of if statement.
John
Offline
Not really sure what I'm doing here, but got this far:
<?php
$user = $this->globals('core_user.usergroup');
// +--
// | sale_amount = The amount of the sale.
// | sale_textshow = The text to be displayed for the sale.
// +--
if ($user == 'UKInk10') {
$sale_percent = 10;
$sale_textshow = 'Customer Discount';
$this->globals('ecom.total_customsale',$sale_amount);
$this->globals('ecom.customsale_text',$sale_textshow);
?>
} // End of if statement.
I have set up a user group called UKInk10. However, when I transfer users into this group then their passwords stop working.
No idea why.
Regards,
Mark
wwwukinksupplies.com
Offline
Pages: 1