Zen Cart Logo
Forums / All Other Contributions/Addons / site wide, category & product mark up Clarification

site wide, category & product mark up Clarification

Views: 4,999

Results 1 to 20 of 23
17 Mar 2008, 12:57 AM
#1
heimskr75 avatar

heimskr75

Zen Follower

Join Date:
Apr 2007
Posts:
106
Plugin Contributions:
3

site wide, category & product mark up Clarification

Hello. To those that are using the site wide, category & product mark up add-on there is a bit of a typo in the instructions listed in the admin area. :oops:
It shows this => Example: 100%, c(2,3,5-20):150%;p(100-200,9):$200
the issue that will cause some confusion/problems is that you need to place a semi colon behind the site wide percentage mark up like so => Example: 100%; c(2,3,5-20):150%;p(100-200,9):$200 not a comma as the example shows

Sorry about that :blush:

4 Sep 2008, 6:05 PM
#2
d1rage5 avatar

d1rage5

Zen Follower

Join Date:
Jan 2008
Location:
Roswell, Ga USA
Posts:
144
Plugin Contributions:
0

Re: site wide, category & product mark up Clarification

info on sql patch.

if you have a prefix added to your Db where would you add that in?

heres the error i get, so i assume its because of my prefix (hsp)

1146 Table 'hallowe3_myhs1forum.zen_configuration_group' doesn't exist
in:
[SELECT @last_id :=last_insert_id() FROM zen_configuration_group;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

17 Sep 2008, 8:59 PM
#3
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: site wide, category & product mark up Clarification

When I try to install the sql, I get this error:

1062 Duplicate entry 'MARK_UP_STRING' for key 2
in:
[INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('', 'Mark up String', 'MARK_UP_STRING','0','Define your mark up requirements here, separated by semicolons(";").

Format: [default markup]; [c or p]([category / product id values, separated by commas, also able to accept range]):[percentage / dollar amount]

Example: 100%, c(2,3,5-20):150%;p(100-200,9):$200

In the above example, mark up by 100% for all products, 150% for category id 2, 3, and 5 to 20, and add $200 for products ids 9, 100 to 200 ', @last_id, 1, now());]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

This is the actual sql file:

INSERT INTO configuration_group
(configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible)
VALUES (NULL, 'Sitewide Mark Up', 'Config options for Sitewide Mark up module', '1', '1');

UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

SELECT @last_id :=last_insert_id() FROM configuration_group;

INSERT INTO configuration 
(configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) 
VALUES 
('', 'Mark up String', 'MARK_UP_STRING','0','Define your mark up requirements here, separated by semicolons("\;").<br /><br />Format: [default markup]; [c or p]([category / product id values, separated by commas, also able to accept range]):[percentage / dollar amount] <br /><br />Example: 100%, c(2,3,5-20):150%;p(100-200,9):$200<br /><br />In the above example, mark up by 100% for all products, 150% for category id 2, 3, and 5 to 20, and add $200 for products ids 9, 100 to 200 ', @last_id, 1, now());

Can someone help a zenner out?:D

Thanks

25 Nov 2008, 4:44 PM
#4
smoke133 avatar

smoke133

Zen Follower

Join Date:
Jul 2007
Location:
Roseville, Michigan
Posts:
188
Plugin Contributions:
0

Re: site wide, category & product mark up Clarification

Is there a way to set so you can mark the price range?
Example:

$0 to $10 markup 20%
$10.01 to 20.00 markup 15%
$20.01 and up markup 10%

9 Dec 2008, 5:50 PM
#5
ccn1 avatar

ccn1

Zen Follower

Join Date:
Sep 2004
Location:
London. UK.
Posts:
152
Plugin Contributions:
0

Re: site wide, category & product mark up Clarification

Hi

I have installed this module as its a great idea and due to the amount of products my customers would like to just add a % markup.

All sounds good and looked good, until we started to test payments via PayPal and Nochex.

With PayPal there is a Currency/Amount Mismatch as show below in the log file.

Dec 09 2008 11:39 -- IPN WARNING :: Currency/Amount Mismatch. Details:
PayPal email address = sales@*****.co.uk
| mc_currency = GBP
| submitted_currency = GBP
| order_currency = GBP
| mc_gross = 1.70
| converted_amount = 1.00
| order_amount = 1

The product item is £1, the markup tool makes £1.70 but PayPal does not like it.

Have I done something wrong >?

I have tried entering a percentage two ways as follows: 50% and 50%;

Nochex is not working either but that may be a red herring as paypal works fine when i turn the Markup Module off, Nochex still does not.

Im using the latest freshly installed version of zencat (1.3.8a) and the current DB level (1.3.8).
My hosting company is running PHP Version 4.4.9 and Curl is enabled (if it makes any difference >?)

Thank you in advance, Any help is appreciated.

Kind Regards

Chris

9 Jan 2009, 9:48 PM
#6
shqipo avatar

shqipo

New Zenner

Join Date:
Apr 2006
Posts:
94
Plugin Contributions:
0

Re: site wide, category & product mark up Clarification

Does anyone know if this works with previous versions (e.g. 1.3.7)?

30 Jan 2009, 11:55 AM
#7
heimskr75 avatar

heimskr75

Zen Follower

Join Date:
Apr 2007
Posts:
106
Plugin Contributions:
3

Re: site wide, category & product mark up Clarification

Just so you guys know I had this mod coded for me by jaycode you can track him down on the forum or on his website webextremecustomizer.com . If you email him there he may be willing to help (assuming he's not to busy).
I can't code my way out of a paper bag so I am of no use in these areas

30 Nov 2009, 7:10 AM
#8
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: site wide, category & product mark up Clarification

I wanted to post this for the community in case it helps other folks since it seems like we're all having the same issue installing this mod. As many have found out, if you are using a table prefix, this SQL script that comes with this mod will bomb out. Unfortunately once it bombs out you have to remove any rows that MIGHT have been added to your database, re-upload all of the mod files again and start over.. So here's how you should modify the SQL before you run it.

INSERT INTO [B]TablePrefix_[/B]configuration_group
(configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible)
VALUES (NULL, 'Sitewide Mark Up', 'Config options for Sitewide Mark up module', '1', '1');

UPDATE [B]TablePrefix_[/B]configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

SELECT @last_id :=last_insert_id() FROM [B]TablePrefix_[/B]configuration_group;

INSERT INTO [B]TablePrefix_[/B]configuration 
(configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) 
VALUES 
('', 'Mark up String', 'MARK_UP_STRING','0','[B]100%; c(2,3,5-20):150%;p(100-200,9):$200'[/B], @last_id, 1, now());
``` The items highlighted in red should be replaced with your table prefix. If you are not using a table prefix, you can simply remove this text. The last part highlighted in blue needs to be changed because what's in the mod files is incorrect and and an invalid value for the column. Instead IMO these instructions should have been included in the readme file.

> Define your mark up requirements here, separated by semicolons(";").
> 
> Format: [default markup]; [c or p]([category / product id values, separated by commas, also able to accept range]):[percentage / dollar amount] 
> 
> Example: 100%;c(2,3,5-20):150%;p(100-200,9):$200
> 
> In the above example, mark up by 100% for all products, 150% for category id 2, 3, and 5 to 20, and add $200 for products ids 9, 100 to 200Hope this helps.. So far the mod seems to work okay, the install was just a little bit of a bear..:smile:
30 Nov 2009, 7:18 AM
#9
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: site wide, category & product mark up Clarification

Whoops.. I left out part of this:

INSERT INTO [B]TablePrefix_[/B]configuration_group
(configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible)
VALUES (NULL, 'Sitewide Mark Up', 'Config options for Sitewide Mark up module', '1', '1');

UPDATE [B]TablePrefix_[/B]configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

SELECT @last_id :=last_insert_id() FROM [B]TablePrefix_[/B]configuration_group;

INSERT INTO [B]TablePrefix_[/B]configuration 
(configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) 
VALUES 
('', 'Mark up String', 'MARK_UP_STRING','0','[B]Define your mark up requirements here, separated by semicolons(";").<br /><br />Format: [default markup]; [c or p]([category / product id values, separated by commas, also able to accept range]):[percentage / dollar amount] <br /><br />
Example: 100%;c(2,3,5-20):150%;p(100-200,9):$200<br />
<br />In the above example, mark up by 100% for all products, 150% for category id 2, 3, and 5 to 20, and add $200 for products ids 9, 100 to 200' [/B], @last_id, 1, now());
29 Jan 2010, 6:25 AM
#10
jrennaker avatar

jrennaker

New Zenner

Join Date:
Aug 2006
Posts:
17
Plugin Contributions:
0

Re: site wide, category & product mark up Clarification

Installed mod and configured and was working perfect until I installed msrp_display mod. Now the price on the web page shows the cost of the product but when I send it to the cart it reflects the marked up price. Any help would be appreciated.

26 Jan 2011, 1:54 AM
#11
grayscale avatar

grayscale

New Zenner

Join Date:
Nov 2010
Posts:
4
Plugin Contributions:
0

Re: site wide, category & product mark up Clarification

So how do you remove the rows if you have already run the SQL. I can't find my database backup so any help would be greatly appreciated.

16 Mar 2011, 4:29 AM
#12
andyvi avatar

andyvi

New Zenner

Join Date:
Feb 2011
Posts:
40
Plugin Contributions:
0

Re: site wide, category & product mark up Clarification

smoke133:

Is there a way to set so you can mark the price range?
Example:

$0 to $10 markup 20%
$10.01 to 20.00 markup 15%
$20.01 and up markup 10%

I installed the mod hoping it would do the same, I need a sitewide markup % by price range so badly.

Any ideas, surely this mod can be slightly edited to accomodate this function.

Thanks... :)

26 Nov 2012, 7:33 PM
#13
allaction avatar

allaction

New Zenner

Join Date:
Jun 2012
Location:
Oklahoma
Posts:
39
Plugin Contributions:
0

Re: site wide, category & product mark up Clarification

Is there a version of this mod that works with ZC v1.5.0.????

30 Nov 2012, 5:22 PM
#14
zachishi avatar

zachishi

New Zenner

Join Date:
Nov 2012
Posts:
3
Plugin Contributions:
0

Re: site wide, category & product mark up Clarification

Anybody got this working on 1.5

18 Jul 2014, 9:31 PM
#15
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: site wide, category & product mark up Clarification

DivaVocals:

Whoops.. I left out part of this:

INSERT INTO [B]TablePrefix_[/B]configuration_group
(configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible)
VALUES (NULL, 'Sitewide Mark Up', 'Config options for Sitewide Mark up module', '1', '1');

UPDATE [B]TablePrefix_[/B]configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

SELECT @last_id :=last_insert_id() FROM [B]TablePrefix_[/B]configuration_group;

INSERT INTO [B]TablePrefix_[/B]configuration
(configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added)
VALUES
('', 'Mark up String', 'MARK_UP_STRING','0','[B]Define your mark up requirements here, separated by semicolons(";").<br /><br />Format: [default markup]; [c or p]([category / product id values, separated by commas, also able to accept range]):[percentage / dollar amount] <br /><br />
Example: 100%;c(2,3,5-20):150%;p(100-200,9):$200<br />
<br />In the above example, mark up by 100% for all products, 150% for category id 2, 3, and 5 to 20, and add $200 for products ids 9, 100 to 200' [/B]
, @last_id, 1, now());




Installed this on ZC 1.5 and everything appear in database but Sitewide MarkUp is not appearing in admin under configuration. I can access it manually via domain.com/admin/configuration.php?gID=99 Uninstall and installed it again but still same thing. Any idea? Thank you."
19 Jul 2014, 1:38 AM
#16
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: site wide, category & product mark up Clarification

jsarwar:

Installed this on ZC 1.5 and everything appear in database but Sitewide MarkUp is not appearing in admin under configuration. I can access it manually via domain.com/admin/configuration.php?gID=99 Uninstall and installed it again but still same thing. Any idea? Thank you."

Welcome to sql world again. :) the installation of applications to the zc admin is different under 1.5 than erlier versions. Need to read the FAQ on doing this. I think it is admin page registration.

19 Jul 2014, 4:13 AM
#17
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: site wide, category & product mark up Clarification

I have added admin_pages as shown below but it still not appearing in admin

SiteWideMarkUp
BOX_CONFIGURATION_MARK_UP_STRING
FILENAME_CONFIGURATION
gID=89
configuration
Y
89

--

I also tried
MarkUpString
BOX_CONFIGURATION_MARK_UP_STRING
FILENAME_CONFIGURATION
gID=89
configuration
Y
89

I also tried both with word "Config" as ConfigMarkUpString.....

20 Jul 2014, 1:31 AM
#18
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: site wide, category & product mark up Clarification

jsarwar:

I have added admin_pages as shown below but it still not appearing in admin

SiteWideMarkUp
BOX_CONFIGURATION_MARK_UP_STRING
FILENAME_CONFIGURATION
gID=89
configuration
Y
89

--

I also tried
MarkUpString
BOX_CONFIGURATION_MARK_UP_STRING
FILENAME_CONFIGURATION
gID=89
configuration
Y
89

I also tried both with word "Config" as ConfigMarkUpString.....

Need to be sure that you have a define for: BOX_CONFIGURATION_MARK_UP_STRING I think it is. It's been a while since I have had to do this myself. I know that I provided a link to the faq in a previous thread with you, but I don't recall the details.

20 Jul 2014, 1:37 AM
#19
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: site wide, category & product mark up Clarification

mc12345678:

Need to be sure that you have a define for: BOX_CONFIGURATION_MARK_UP_STRING I think it is. It's been a while since I have had to do this myself. I know that I provided a link to the faq in a previous thread with you, but I don't recall the details.

I did not see faq. Can you post again that may help me. Thank you.