Kryptronic Software Support Forum

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.

  • Index
  •  » ClickCartPro 6
  •  » 10/15% discount on ink cartridges purchased at www.ukinksupplies.com

#1 10-26-2010 12:56:56

DarkieBoy
Member
Registered: 08-27-2010
Posts: 23
Website

10/15% discount on ink cartridges purchased at www.ukinksupplies.com

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

 

#2 10-26-2010 13:15:51

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: 10/15% discount on ink cartridges purchased at www.ukinksupplies.com

A custom sales method could be written to do that (Home > ClickCartPro (GBU) > Commerce: Orders and Checkout > Manage Custom Sale Methods)

Offline

 

#3 10-26-2010 13:27:15

DarkieBoy
Member
Registered: 08-27-2010
Posts: 23
Website

Re: 10/15% discount on ink cartridges purchased at www.ukinksupplies.com

Thank you Dave,

Possibly a bit beyond me.  I don't do programming at all.

But thanks anyway.

Mark.
wwwukinksupplies.com

Offline

 

#4 10-26-2010 13:49:00

DarkieBoy
Member
Registered: 08-27-2010
Posts: 23
Website

Re: 10/15% discount on ink cartridges purchased at www.ukinksupplies.com

Dave, any suggestions who could write it?

Mark
wwwukinksupplies.com

Offline

 

#5 10-26-2010 13:52:42

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: 10/15% discount on ink cartridges purchased at www.ukinksupplies.com

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

 

#6 10-26-2010 14:34:23

DarkieBoy
Member
Registered: 08-27-2010
Posts: 23
Website

Re: 10/15% discount on ink cartridges purchased at www.ukinksupplies.com

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

 

#7 10-26-2010 14:43:49

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: 10/15% discount on ink cartridges purchased at www.ukinksupplies.com

You can get the current customers user group with this line

Code:

$user = $this->globals('core_user.usergroup');

and then run a check like

Code:

if ($user == 'UKink10') {

// some more code

} // End of if statement.

John

Offline

 

#8 10-27-2010 11:07:28

DarkieBoy
Member
Registered: 08-27-2010
Posts: 23
Website

Re: 10/15% discount on ink cartridges purchased at www.ukinksupplies.com

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

 
  • Index
  •  » ClickCartPro 6
  •  » 10/15% discount on ink cartridges purchased at www.ukinksupplies.com

Board footer