Zen Cart Logo
Forums / All Other Contributions/Addons / modify product listing to show map pricing

modify product listing to show map pricing

Views: 2,492

Results 1 to 19 of 19
13 Mar 2016, 9:17 PM
#1
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
969
Plugin Contributions:
0

modify product listing to show map pricing

i posted this in the module section but got no response to fixing this. so i am posting here. i installed map pricing module and everything seems to work fine except the product listing page, wont show my map price warning only shows base price. need to know to to change to make it work on the product listing page.
Jimmie

14 Mar 2016, 1:26 AM
#2
kobra avatar

kobra

Black Belt

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

Re: modify product listing to show map pricing

Does map display on the product page??

14 Mar 2016, 10:49 AM
#3
cvhainb avatar

cvhainb

Zen Follower

Join Date:
Sep 2008
Posts:
212
Plugin Contributions:
19

Re: modify product listing to show map pricing

Maybe your products_listing.php is using another function price with the product info.

14 Mar 2016, 10:09 PM
#5
kobra avatar

kobra

Black Belt

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

Re: modify product listing to show map pricing

product in question
That is a link to the product page not a product listing page

Product listing would be
floorz-n-more dot com/index.php?main_page=index&cPath=59_181

So where is it that you want map to be displayed?

14 Mar 2016, 10:10 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: modify product listing to show map pricing

jimmie:

product in question
http://floorz-n-more.com/index.php?main_page=product_info&cPath=59_181&products_id=3959

When did you activate this product? When did you last clear your cache?

This is the text I saw when accessing the product: > Price: Priced so low, we're not able to advertise it. Add to cart for price.

Which is what is expected for a MAP controlled product.

14 Mar 2016, 10:49 PM
#7
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
969
Plugin Contributions:
0

Re: modify product listing to show map pricing

when you click listing (in between prev and next) that is listing page, should show same text as product page
http://floorz-n-more.com/index.php?main_page=index&cPath=59_181

14 Mar 2016, 10:51 PM
#8
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
969
Plugin Contributions:
0

Re: modify product listing to show map pricing

that is the only product i have activated

21 Mar 2016, 11:48 AM
#9
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
969
Plugin Contributions:
0

Re: modify product listing to show map pricing

anyone know how to fix?

29 Mar 2016, 12:27 PM
#10
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
969
Plugin Contributions:
0

Re: modify product listing to show map pricing

Help! I need to figure this out, been going on for more than a month, Vendors are ready to cut me off
Jimmie

29 Mar 2016, 5:00 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: modify product listing to show map pricing

it's been ages since I used MAP pricing, but if I remember correctly the mod contained all the relevant changes

29 Mar 2016, 8:57 PM
#12
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
969
Plugin Contributions:
0

Re: modify product listing to show map pricing

DrByte:

it's been ages since I used MAP pricing, but if I remember correctly the mod contained all the relevant changes

Hello DrByte, I sent u a PM, but didnt hear from u. any how i have map activated but activated item does not show map text on the product listing page.
Jimmie

29 Mar 2016, 9:08 PM
#13
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
969
Plugin Contributions:
0

Re: modify product listing to show map pricing

everything else about module works

29 Mar 2016, 9:50 PM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: modify product listing to show map pricing

jimmie:

Hello DrByte, I sent u a PM, but didnt hear from u.
I have a million of those to go thru!

29 Mar 2016, 10:38 PM
#15
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: modify product listing to show map pricing

It sounds like something isn't right in includes/functions/functions_prices.php. Do you have the map code block right at the very bottom of the zen_get_products_display_price function, right before the closing }? Also, make sure zen_get_products_display_price is called in includes/modules/product_listing.php or includes/modules/YOUR_TEMPLATE/product_listing.php.

30 Mar 2016, 3:30 AM
#16
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
969
Plugin Contributions:
0

Re: modify product listing to show map pricing

lankeeyankee:

It sounds like something isn't right in includes/functions/functions_prices.php. Do you have the map code block right at the very bottom of the zen_get_products_display_price function, right before the closing }? Also, make sure zen_get_products_display_price is called in includes/modules/product_listing.php or includes/modules/YOUR_TEMPLATE/product_listing.php.

only thing i could find in function_prices with price_display is 1 instance of this ```
////
// Display Price Retail
// Specials and Tax Included
function zen_get_products_display_price($products_id) {
global $db, $currencies;

$free_tag = "";
$call_tag = "";
30 Mar 2016, 3:37 AM
#17
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
969
Plugin Contributions:
0

Re: modify product listing to show map pricing

from map module functions_prices

//Map Pricing by SlickRicky Design : http://www.slickricky.com : START
// reworked by DrByte for easier db query:
$query = "SELECT map_enabled, map_price FROM ".TABLE_PRODUCTS." where products_id = '" . $products_id . "'" . " limit 1";
$result = $db->Execute($query);
$is_map_enabled = (int)$result->fields['map_enabled'];
$map_price = $result->fields['map_price'];

  if ($is_map_enabled == 1) {
  	if ($map_price > 0) {
		return '<span class="map_pricing">$'.round ($map_price, 2).' '.MAP_PRICE_STORE_FRONT_TEXT_WITH_MAP_PRICE_DISPLAYED.'</span>';
	}
    return '<span class="map_pricing">'.MAP_PRICE_STORE_FRONT_TEXT.'</span>';
  } else {
    return $final_display_price . $free_tag . $call_tag;
  }
}
//Map Pricing by SlickRicky Design : http://www.slickricky.com : END
30 Mar 2016, 4:12 AM
#19
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: modify product listing to show map pricing

Your product_listing file is different. Some other module must have changed it. Your file has this

$lc_price = zen_get_products_discount_price_qty((int)$listing->fields['products_id'],20000);
            $lc_price = '$'.number_format($lc_price, 2);

The stock file has this, and will show the correct price with map:

$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
        $lc_align = 'right';
        $lc_text =  $lc_price;

You might want to check what mod changed that so you don't break that functionality.