If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / "Click for Price" for mininum advertised price

"Click for Price" for mininum advertised price

Locked

Started by gems14k on 16 Nov 2006, 3:56 AM · Views: 1,827

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
16 Nov 2006, 3:56 AM
#1
gems14k avatar

gems14k

New Zenner

Join Date:
Jul 2005
Posts:
95
Plugin Contributions:
0

"Click for Price" for mininum advertised price

I installed the MAP Pricing from here:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=158

I modified it to show to original price.

See it in action here: http://www.nokoria.com/genuine/index.php?main_page=product_info&products_id=180

Now I want to add a link to "Priced so low..." When that link is clicked, an overlay popup will show the price, like this: http://nokoria.com/testing/show_price.html

I'm not sure how integrate this code into the "function_prices.php"

Any help is much appreciated!

Thank you

16 Nov 2006, 4:46 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Click for Price" for mininum advertised price

I have not used the MAP Pricing mod but theorize that they have added a DB table or field to hold the other price. to keep this dynamic it will require that the lower price call be inserted and all converted to php. You can begin by looking at how the tpl_product_info_display.php calls the product price and this is where the on click function will have to be added with the call to the other price.

Zen-Venom Get Bitten

16 Nov 2006, 10:17 PM
#3
gems14k avatar

gems14k

New Zenner

Join Date:
Jul 2005
Posts:
95
Plugin Contributions:
0

Re: "Click for Price" for mininum advertised price

Kobra,

From what I understand, this is what I should try to do:

create a new file called: tpl_click_for_price.php

Inside that file, I put:

Javascript and the link to show the pop-up price. Everything regarding the price and displaying text will be inside this new file.

Then, in tpl_product_info_display.php, I just add the following:

If (mininum advertised price is true)

call tpl_click_for_price.php

Is that right?

Thank you,

17 Nov 2006, 1:02 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Click for Price" for mininum advertised price

This would be one way to do it...just insure that the new file is a valid php file

Zen-Venom Get Bitten