If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Is this possible? Specials-show price/products-no price

Is this possible? Specials-show price/products-no price

Locked

Started by enigma666666 on 10 May 2010, 10:28 AM · Views: 2,698

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
10 May 2010, 10:28 AM
#1
enigma666666 avatar

enigma666666

Zen Follower

Join Date:
May 2010
Posts:
142
Plugin Contributions:
0

Post #1 by enigma666666

I am busy setting Zencart up for a client who wants no prices to displayed on products aka just a catalog,but he wants to be able to have a specials page,where products will have prices displayed,but no cart. Just price display. I must also be able to display a number of specials on the home page. Eg "Specials for May"

How would I go about setting this up?
Is it possible at all?

I have disabled prices in Zencart so that products won't show cart nor prices.
I've tried adding specials with a price, but no luck. The main "no price" setting is applied in Zencart.

10 May 2010, 3:35 PM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,337
Plugin Contributions:
41

Post #2 by mprough

In Tools >> Define Pages Editor, you could easly code this layout as described in HTML for the main page.

~Melanie

10 May 2010, 11:02 PM
#3
enigma666666 avatar

enigma666666

Zen Follower

Join Date:
May 2010
Posts:
142
Plugin Contributions:
0

Post #3 by enigma666666

mprough:

In Tools >> Define Pages Editor, you could easly code this layout as described in HTML for the main page.

~Melanie

Could you please elaborate? I am new to Zencart :smile:
What code do I need to add to the specials page html to enable prices to show up only on that page and not on the main catalog/product pages?

Please note that I have disabled all prices and shopping cart for products within the catalog.

11 May 2010, 7:40 PM
#4
enigma666666 avatar

enigma666666

Zen Follower

Join Date:
May 2010
Posts:
142
Plugin Contributions:
0

Post #4 by enigma666666

Can anyone please advise as to how to accomplish this?
I urgently need to know it this can be done and if it can,
what code or settings I have to alter or add to accomplish this.

11 May 2010, 8:10 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #5 by ajeh

The display of all Prices is managed in one function in the functions_prices.php ...

////
// Display Price Retail
// Specials and Tax Included
  function zen_get_products_display_price($products_id) {

You will see in that function where the prices are controlled by the settings for who can see the prices around:

// 0 = normal shopping
// 1 = Login to shop
// 2 = Can browse but no prices
    // verify display of prices

You could customize that further to allow the prices to show on a specific page and by pass the rules setup to not show the prices on the rest of the site ...

It would take some customization but this could be done ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 May 2010, 6:18 AM
#6
enigma666666 avatar

enigma666666

Zen Follower

Join Date:
May 2010
Posts:
142
Plugin Contributions:
0

Post #6 by enigma666666

Ajeh:

The display of all Prices is managed in one function in the functions_prices.php ...

////
// Display Price Retail
// Specials and Tax Included
function zen_get_products_display_price($products_id) {

> 
> You will see in that function where the prices are controlled by the settings for who can see the prices around:
> ```
// 0 = normal shopping
// 1 = Login to shop
// 2 = Can browse but no prices
    // verify display of prices

You could customize that further to allow the prices to show on a specific page and by pass the rules setup to not show the prices on the rest of the site ...

It would take some customization but this could be done ...

Ohhh no :frusty: I am not a coder at all!

I will not be using the log-in function for now as Zencart will purely be used as a catalog for some time to come, with no transactions taking place.
So in essence, the general public will be able to view everything without having to login.

In light of the above, is there an easier method to display prices only on the specials page and not on any other pages?
It would be great if there is an easy way to do this as I really do not want to resort to using another (external)shopping cart just for the specials page. Ideally I would like all products (normal and specials) to be displayed using Zencart only.

12 May 2010, 2:09 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #7 by ajeh

You could add to the tests to check as the first test whether or not the page is the correct page ... if it is the correct page then it would display the prices and if it is not the correct page then it would continue with the tests which then use the settings for only allow browsing without price ...

So, if you made this just allow the prices to display when on the specials page or home page or where ever it is you want to see the prices, then that is where you will see them and everywhere else they will be masked or hidden ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 May 2010, 8:46 PM
#8
enigma666666 avatar

enigma666666

Zen Follower

Join Date:
May 2010
Posts:
142
Plugin Contributions:
0

Post #8 by enigma666666

Ajeh:

You could add to the tests to check as the first test whether or not the page is the correct page ... if it is the correct page then it would display the prices and if it is not the correct page then it would continue with the tests which then use the settings for only allow browsing without price ...

So, if you made this just allow the prices to display when on the specials page or home page or where ever it is you want to see the prices, then that is where you will see them and everywhere else they will be masked or hidden ...
Thank you this issue has now been resolved.

12 May 2010, 10:31 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #9 by ajeh

What was the solution that worked for you? :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!