MSRP contrib

Views: 82,052

Results 141 to 160 of 393
16 Oct 2009, 1:21 AM
#141
wsmagee avatar

wsmagee

New Zenner

Join Date:
Oct 2009
Posts:
1
Plugin Contributions:
0

MSRP contrib

lankeeyankee:

Yes, we use both. You have to be careful when merging the code in functions_prices since they both modify the same function, but it works well.

I am setting up a new zencart and saw your post that you sucessfully use MSRP & MAP pricing mods together.
May I ask what version of zencart are you using?

I am using 1.3.8.
I do not have experience coding any web based code. Just some VB and a little C#. I am trying to figure out how to install both these mods.

I looked through the files, but am uncomfortable with what parts to insert into the 1.3.8 files for the MAP pricing mod(since it is in 1.3.6 files when you download it.) I also saw that the MSRP mod used some of the same files, so I know I could not upload the files from both mods seperatly.

Do you have any guidance on how you determined what parts to get from the mod files and merge into the server files.

Thanks

8 Nov 2009, 6:01 PM
#142
avantik avatar

avantik

New Zenner

Join Date:
Mar 2009
Location:
Miami - USA
Posts:
33
Plugin Contributions:
0

Re: MSRP contrib

Hello Zenners,
How would you go about having the MSRP price displayed only to anonymous users vs the discounted price to registered users?
If anybody could point me to the mechanisms for checking logged vs anonymous users I might be able to figure it out myself!
Thanks

CJ

8 Nov 2009, 10:15 PM
#143
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: MSRP contrib

avantik:

Hello Zenners,
How would you go about having the MSRP price displayed only to anonymous users vs the discounted price to registered users?
If anybody could point me to the mechanisms for checking logged vs anonymous users I might be able to figure it out myself!
Thanks
You might want to try the Hidden Wholesale add on for that.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

8 Nov 2009, 11:55 PM
#144
avantik avatar

avantik

New Zenner

Join Date:
Mar 2009
Location:
Miami - USA
Posts:
33
Plugin Contributions:
0

Re: MSRP contrib

Hi countrycharm,
Thanks for your prompt response.
Looks like the "hidden wholesale" contribution would not work for what I need. The documentation states that it's an "either/or" type scenario, where the products are either wholesale or retail, and at best you can show both to the wholesaler.
The issue I have is the cart is being used for wholesalers. The approach so far has been to block the store for everybody, and show prices only to users that are authorized to shop, via a registration approval.
The customer feels he's missing leads, so he'd like to display the MSRP (high and public) to discourage any consumers, but to attract potential wholesalers (they usually know they can get a good discount)
So what I really need is to display the "MSRP" for anonymous users and hide the "store price", while displating both for registered users.
Makes sense?
Thanks!

CJ

9 Nov 2009, 2:56 PM
#145
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: MSRP contrib

avantik:

Hi countrycharm,
Thanks for your prompt response.
Looks like the "hidden wholesale" contribution would not work for what I need. The documentation states that it's an "either/or" type scenario, where the products are either wholesale or retail, and at best you can show both to the wholesaler.
The issue I have is the cart is being used for wholesalers. The approach so far has been to block the store for everybody, and show prices only to users that are authorized to shop, via a registration approval.
The customer feels he's missing leads, so he'd like to display the MSRP (high and public) to discourage any consumers, but to attract potential wholesalers (they usually know they can get a good discount)
So what I really need is to display the "MSRP" for anonymous users and hide the "store price", while displating both for registered users.
Makes sense?
Thanks!
Not sure how to help on this one. Sorry

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

11 Nov 2009, 3:38 AM
#146
avantik avatar

avantik

New Zenner

Join Date:
Mar 2009
Location:
Miami - USA
Posts:
33
Plugin Contributions:
0

Re: MSRP contrib

Any suggestions?:(

CJ

11 Nov 2009, 9:28 PM
#147
bh_scripts avatar

bh_scripts

New Zenner

Join Date:
Nov 2005
Location:
New Zealand
Posts:
16
Plugin Contributions:
0

Re: MSRP contrib

A logged in customer should have a session variable $_SESSION['customer_id']. So you could check for that to tell the difference.

16 Nov 2009, 1:14 AM
#148
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: MSRP contrib

Hi I have a question. When I do a W3C validation I'm getting a lot of errors because of this add on. Love the add on but I need to some how correct this errors. You can see them here
What file do I need to look at. Thank you in advance.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

25 Nov 2009, 4:42 AM
#149
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: MSRP contrib

countrycharm:

Hi I have a question. When I do a W3C validation I'm getting a lot of errors because of this add on. Love the add on but I need to some how correct this errors. You can see them here
What file do I need to look at. Thank you in advance.

Anybody at all.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

25 Nov 2009, 4:53 AM
#150
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: MSRP contrib

I know I have errors for the Christmas count down, but I want to know how to fix the errors that this module is causing. Thank You

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

28 Nov 2009, 8:11 PM
#151
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: MSRP contrib

I just installed this mod using the original .zip and all the fixes mentioned throughout the thread but it has wiped out my footer & right column and in my right column I have this error:

"1054 Unknown column 'products_msrp' in 'field list'
in:
[select products_msrp, products_priced_by_attribute from zen_products where products_id = '1463']"

I also have the 1054 error in admin when trying to navigate to edit a product. I did install the sql patch through phpMyAdmin and didn't get any errors.

I have reuploaded my unchanged files but still have the error, so I guess I need to remove the sql OR figure out why I'm getting the 1054 error. Can someone please help me? I'm lost :cry:

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

28 Nov 2009, 8:35 PM
#152
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: MSRP contrib

I installed this on a client's site recently and had no problems.

I decided to do MANUAL EDITS to my files, rather than FTP the module, because my files (that the module otherwise overwrites) are already customized.

When you applied the sql patch, did you do this via Admin >>> Tools, ... or via phpMyAdmin ?

If you do it via phpMyAdmin, and your dbase has PREFIXES, then you will have problems.

Small SQL patches are always best loaded via the admin panel, as it will automatically append a prefix if you use one.

20 years a Zencart User

28 Nov 2009, 8:53 PM
#153
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: MSRP contrib

I tried to do it via admin, but I couldn't get it to work. I did it then through phpMyadmin.

I thought I figured out what I did wrong - I didn't put on the prefix which when I look in my config file it says my db prefix is "zen_". So I tried reinstalling the patch with the prefix, but no luck.

I also tried to uninstall, including restoring my db but the error is still there :ohmy:

So, I'm down for maintenance until I get this straightened out...

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

28 Nov 2009, 9:02 PM
#154
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: MSRP contrib

This is what happens when I try to install through zen admin:

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'products ADD products_msrp DECIMAL( 15, 4 ) NOT NULL AFTER products_price' at line 1
in:
[ALTER TABLE zen_ products ADD products_msrp DECIMAL( 15, 4 ) NOT NULL AFTER products_price ;]
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.

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

28 Nov 2009, 9:50 PM
#155
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: MSRP contrib

Nevermind, stupid mistake on my part. It's now working perfectly.

Mentioned quite a few pages back -- has anyone figured out how to put the order as follows: MSRP, Our Price, You Save? I think that's a more sensible order.

This is a great mod, I'm so happy it's working :clap:

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

29 Nov 2009, 4:05 AM
#156
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: MSRP contrib

countrycharm:

Hi I have a question. When I do a W3C validation I'm getting a lot of errors because of this add on. Love the add on but I need to some how correct this errors. You can see them here
What file do I need to look at. Thank you in advance.

Still looking a answer to this.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

1 Dec 2009, 2:33 PM
#157
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: MSRP contrib

CharInLasVegas:

Mentioned quite a few pages back -- has anyone figured out how to put the order as follows: MSRP, Our Price, You Save? I think that's a more sensible order.

This is a great mod, I'm so happy it's working :clap:

Does anyone have a clue as to where to look to change this?

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

1 Dec 2009, 3:28 PM
#158
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: MSRP contrib

@countrycharm:
You need to go into the template for that display and change all of the break tags to ```
<br /> from <br>

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

1 Dec 2009, 3:34 PM
#159
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: MSRP contrib

@countrycharm and CharInLasVegas
You should be able to rearrange the following section in includes/functions/functions_prices.php (about line 295 to 311):

 // don't show the $0.00
	  if(($display_msrp_price!='')&&($display_msrp_price!='0')){
	  $save=$display_msrp_price-$display_normal_price;
      	$final_display_price = '<span class="smalltext1"><s>'.TEXT_PRODUCT_MSRP.$currencies->display_price($display_msrp_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</s></span><br><span class="save">'.TEXT_PRODUCT_SAVE .$currencies->display_price($save, '').'  ('. number_format((($display_msrp_price -  $display_normal_price) / $display_msrp_price), 2, '.', '') * 100 . '%)'.'</span><br><span class="norm">'.TEXT_PRODUCT_OUR.$show_special_price . $show_sale_price . $show_sale_discount.'</span>' ;
	  }else{
	  	$final_display_price = $show_special_price . $show_sale_price . $show_sale_discount;
	  }
    } else {
	 if(($display_msrp_price!='')&&($display_msrp_price!='0')){
	 $save=$display_msrp_price-$display_normal_price;
      	$final_display_price = '<span class="smalltext1"><s>'.TEXT_PRODUCT_MSRP.$currencies->display_price($display_msrp_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</s></span><br><span class="save">'.TEXT_PRODUCT_SAVE .$currencies->display_price($save, '').'  ('. number_format((($display_msrp_price -  $display_normal_price) / $display_msrp_price), 2, '.', '') * 100 . '%)'.'</span><br><span class="norm">'.TEXT_PRODUCT_OUR.$show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount.'</span>' ;
	  }else{
	  	$final_display_price = $show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount;
	  }
    }
	    
// If Free, Show it

This would also be the section to fix the break tags

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

1 Dec 2009, 5:10 PM
#160
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: MSRP contrib

barco57:

@countrycharm:
You need to go into the template for that display and change all of the break tags to ```
<br /> from <br>

Thank You that worked out great. I'm still struggling to do what CharInLasVegas suggested. I just can't seem to get it to rearrange in the right order. Hmmm Thanks again

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation