Forums / Templates, Stylesheets, Page Layout / Twitch List Price - how do I display List price?

Twitch List Price - how do I display List price?

Views: 4,119

Results 1 to 20 of 21
3 Mar 2014, 7:52 PM
#1
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Twitch List Price - how do I display List price?

I need to display the list price on the product listing pages in my cart.

I have Twitch Base Cost and Twitch List Price modules installed on a 1.51 Zen cart new install.
Admin Display Product/Catalog Thumbnails and Column layout grid are also installed.

Any ideas where I should begin?
Thanks :)

3 Mar 2014, 9:51 PM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch List Price - how do I display List price?

Column Layout Grid would be the problem. Which version of List Price do you have installed?

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

3 Mar 2014, 10:13 PM
#3
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Twitch List Price - how do I display List price?

Twitch List Price - Version: 13a
Is there another?

3 Mar 2014, 11:48 PM
#4
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch List Price - how do I display List price?

Upgrade to 14a then if that works I'll send over the steps to get it working on column layout grid :)

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

4 Mar 2014, 12:00 AM
#5
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Twitch List Price - how do I display List price?

twitch_list_price_13a_for_151.zip is what I get when I download the latest version...it's the original version I have already installed.

4 Mar 2014, 12:11 AM
#6
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch List Price - how do I display List price?

Check out my site while you wait for it to be approved, you'll find the version you seek ;)

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

4 Mar 2014, 12:30 AM
#7
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Twitch List Price - how do I display List price?

Thanks Twitch, I got it!
I'll wait for you to send the steps to get it working on column layout grid. Currently it displays list price twice.

Thanks again,

21 Aug 2014, 9:13 PM
#8
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch List Price - how do I display List price?

Trinity14:

Thanks Twitch, I got it!
I'll wait for you to send the steps to get it working on column layout grid. Currently it displays list price twice.

Thanks again,

Be sure you have installed Column Layout Grid and Twitch List Price 14a for Zen Cart v1.51 - March 1.2014 - properly.

When set for **column **layout, you will not see the list price heading, just the price. If it's duplicating as you mentioned, you've duplicated the code.

So let's add the list price heading back into the list price output line with some CSS:

includes/modules/YOUR_TEMPLATE/product_listing.php
replace this:
case 'PRODUCT_LIST_THE_LIST_PRICE':
$lc_align = '';
$lc_text = $listing->fields['products_list_price'];
break;

with this:
case 'PRODUCT_LIST_THE_LIST_PRICE':
$lc_align = '';
$lc_text = '<span class="productsList_heading">' . TABLE_HEADING_THE_LIST_PRICE . '</span>  <span class="productsList_price">$' . $listing->fields['products_list_price'] . '</span>';
break;

includes/templates/YOUR_TEMPLATE/css/stylesheet.css
add the two classes you're calling in the last code:

.productsList_heading {
font-size: 1.3em;
font-weight:bold;
color:#00367F;
}
.productsList_price {
font-size: 1.3em;
color:#00367F;
}

Next be sure to navigate to Admin > Configuration -> Product Listing -> Display Product Price/Add to Cart set the sort order to '4'. By default the List Price is set for a sort order of 3.

So now you will see the List Price $0.00 in the column grid :)

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

21 Aug 2014, 9:15 PM
#9
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch List Price - how do I display List price?

This fix works for anyone using Zen Cart 1.53 with** Twitch List Price** and Column Layout Grid for Product Listing 2.31.

I know cause I'm Twitch ;)

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

22 Aug 2014, 12:59 PM
#10
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Twitch List Price - how do I display List price?

Thanks for following up, I'll work this into my schedule and let you know how it goes.

7 Feb 2015, 9:59 PM
#11
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch List Price - how do I display List price?

Twitch List Price - MSRP - MAP

Check the forum *plugins *or my website for your copy.

This module adds a list_price input for each product in orders, invoices, product info and order history.

Alternate uses include **MSRP **(Manufacturers Suggested Retail Price), **MAP **(Minimum Advertised Price)

You can easily change the **language **files to read MSRP or MAP instead of List Price if you would like. There is no need to change the products_list_price code.

What's New

  • displays on Category/Product Listing
  • displays on Advanced Search Results
  • minor code changes in admin to correct alignment issues
  • updated line numbers for Zen Cart v1.54
  • improvements to the instructions

This is compatible with ZC v1.53 the line numbers might be off a bit.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

14 Oct 2015, 2:19 PM
#12
divavocals avatar

divavocals

Totally Zenned

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

Re: Twitch List Price - how do I display List price?

Is there a place where I can see this module in action??

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

15 Oct 2015, 2:32 PM
#13
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch List Price - how do I display List price?

DivaVocals:

Is there a place where I can see this module in action??

Twitch Modules scroll down for List Price MSRP:
http://twitchtoo.com/zencart/index.html

Screenshots included in the module pack:
http://twitchtoo.com/zencart_support_forum/twitch_list_price_16b_for_154/twitch_list_price_installed_screenshots.jpg

Live Site:
http://titanmutual.com/titanmutual_site/twitch_list_price/

The list price code can be integrated pretty much anywhere you want I've included the basics in the pack from start to end of the order in admin.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

6 Nov 2015, 6:16 AM
#14
divavocals avatar

divavocals

Totally Zenned

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

Re: Twitch List Price - how do I display List price?

Two questions:
Will this work with SNAF? (https://www.zen-cart.com/downloads.php?do=file&id=1358)
I noticed that the MSRP doesn't display in the centerboxes; what would I need to modify to include the MSRP in the centerbox displays?

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

6 Nov 2015, 7:56 AM
#15
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch List Price - how do I display List price?

DivaVocals:

Two questions:
Will this work with SNAF? (https://www.zen-cart.com/downloads.php?do=file&id=1358)
I noticed that the MSRP doesn't display in the centerboxes; what would I need to modify to include the MSRP in the centerbox displays?

Yes it works with SNAF.

Right now it's coded to pull the data using $products_list_price. If you trace it back from the product_info page you'll see it run through product_info/main_template_vars.php.

If you want it to display in any other location, sideboxes, centerboxes etc. add $products_list_price to the** header_php.php or main_template_vars.php **of the pages you want it to show up on then display with something like:
<span class="productsList_price">List Price: $<?php echo $products_list_price; ?></span>

Chicken or the egg - The modules/product_listing.php is just a formatting page so once you have SNAF installed, you can merge in Twitch List. If you already installed Twitch List, you'll need to install SNAF carefully. SNAF is changing the format, Twitch List is just adding a bit of text within that format.

Just remember, some of those pages load their variables using multiple header_php.php pages or sometimes through the module/page_name_here.php. It would seem the 'older' zen code was not centralized into one location instead each page was loading and reloading what it needed. Twitch Restrict is the most advanced example of this occurrence. For example all_products does not load variable data the way upcoming_products does.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

19 May 2016, 7:35 PM
#16
henry3 avatar

henry3

New Zenner

Join Date:
Feb 2010
Posts:
21
Plugin Contributions:
0

Re: Twitch List Price - how do I display List price?

Is there a setting to display the price field instead of price unavailable without the customer being logged in ?

16 Oct 2018, 4:19 PM
#17
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch List Price - how do I display List price?

henry3:

Is there a setting to display the price field instead of price unavailable without the customer being logged in ?

This can be setup with a variety of settings in the admin or by coding it in custom because... the settings create a matrix of options that may not satisfy the desired output in every instance.

Essentially you could just hide the expression displaying 'product unavailable' with the price display expression.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

18 Oct 2018, 9:11 PM
#18
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch List Price - how do I display List price?

Minor formatting updates will be included in the newest release (18c) currently in beta production for 155f:

Overwrite the stock list-price with both of those lines...

includes/templates/YOUR_TEMPLATE/css/stylesheet.css
.product-price{font-size:140%;margin:5px 0;}
.list-price {color: #333; font-style: italic; font-weight: bold; font-size: 1.3em;}

includes/modules/YOUR_TEMPLATE/product_listing.php
Around line 155 - change the retail display price to match CSS
$lc_price = '<div class="**product-price**">' . zen_get_products_display_price($listing->fields['products_id']) . '</div>';

Around line 201 - update list-price with proper formatting
$lc_text = '<span class="**list-price**">' . TABLE_HEADING_THE_LIST_PRICE . number_format($listing->fields['products_list_price'],2) . '</span>';

Add detail...
includes/languages/english/YOUR_TEMPLATE/index.php
define('TABLE_HEADING_THE_LIST_PRICE', 'List Price: $');

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

21 Jan 2019, 6:04 AM
#19
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch List Price - how do I display List price?

To tie in the List Price ON/OFF switch in the Admin > Configuration > Product Listing

directly

to control the Product Info Display -** includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php

Replace this:
<span class="productsList_price">List Price: $<?php echo $products_list_price; ?><br/></span>

With this:
**<?php if (PRODUCT_LIST_THE_LIST_PRICE >= '1') { ?>
<span class="productsList_price">List Price: $<?php echo $products_list_price; ?><br/></span>

<?php } ?>

Also, this module works well with ***1.55f ***- line numbers may be off a bit - be mindful merging.

A new version with minor updates will be available shortly.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

19 Jul 2021, 2:04 PM
#20
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch List Price - how do I display List price?

I've just submitted...**
Twitch List Price**
Version 18c for Zen Cart 1.55f
July 15.2021

New for 1.55f...

  • Now uses product_mlist input
  • Admin master ON/OFF switch
  • Set List Price on each product in admin
  • Display in various admin locations and on live site

This is the last version compatible with Zen Cart 1.55x

Developers...
This is the 'step' version for anyone upgrading from previous versions using products_list_price to get to product_mlist. This version replaces the previous name in similar locations to make merging files/upgrading the database easier. The next version of Twitch List Price for 1.56c is not backwards compatible.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian