Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Hide all Prices but allow checkout -- using ZC as a quotation system

Hide all Prices but allow checkout -- using ZC as a quotation system

Locked

Views: 3,424

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
3 Dec 2006, 10:54 AM
#1
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Location:
Maidstone, Kent, UK
Posts:
310
Plugin Contributions:
0

Hide all Prices but allow checkout -- using ZC as a quotation system

Hi all, I know I have covered this before but I culd not locate the topic.

Here goes....Some time ago I used OSC, hacked it to pieces to allow clients to add items to the cart, checkout skipping both shipping and payment ptions and place what in simple terms was a quotation request order.

The client would then simply note what the customer was interested in and compile a reply with quotation to the client.

This site is still working now, and all ref to payments, prices and shipping have either been altered to reflect quote or removed entirely, however OSC sucks so I am moving him over to ZenC.

The database move is complete, however I am struggling with the following issues.

  1. Hide all prices from visibility whethur client is logged in or not.
    Allow add items to cart, checkout skip shipping and payment options to simply post the order in the database, but still send confirmation emails to admin and client with full details (minus prices)

The reason for doing this is that the shopping site owner is an exporter and quotes purchase prices to clients globally based on order quantity so prices always differ.

I have gone through the entire system and turned off every display of price I can find, but still the price shows up

Anyone able to help me?

3 Dec 2006, 11:38 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Hide all Prices but allow checkout -- using ZC as a quotation system

You could probably start by editing the functions_prices.php file and telling zen_get_products_display_price() to return an empty string. But that would only prevent display of prices, not the next or components "near" the prices, etc.

3 Dec 2006, 12:05 PM
#3
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Location:
Maidstone, Kent, UK
Posts:
310
Plugin Contributions:
0

Re: Hide all Prices but allow checkout -- using ZC as a quotation system

Im not entirely sure I understand that.

What I thought, logical anyway, if I edit all the template files and remove any echo of price commands, this would simply not echo any price on the main shop site end, however since I am not editing admin pages surely this will not effect the fact that each item will have a price, and anything in admin will remain as it should be.

Is this a simple way to achieve what I am trying to do? I can do it, but wil it cause any other issues, simply telling the template to display everything except the price field.

May mean cleaning up a little to adjust columns and spaces but I can work that out ok.

I simply want clients to be able tp add items and complete an order without shipping, prices or payment information showing

To achieve it in OSC I had to litterally edit loads of pages and remove bits of code that display the info, and it worked a treat.

3 Dec 2006, 3:07 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Hide all Prices but allow checkout -- using ZC as a quotation system

95% of all price displays are controlled via a single function ...

However, during checkout the prices are controlled by other code to manage the payments, shipping, etc.

While it is much easier to alter all of this in Zen Cart, it will take more work for that 5% peice than the other 95% ...

Look at the functions where the prices are called for the display ... you will see they all use the same function ...

Once you alter that function, you can then move through the shopping_cart to alter its display ... and the checkout_something files to alter theirs ...

Most of the later will be done in the classes ...

How are your php skills ... :cool:

3 Dec 2006, 5:58 PM
#5
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Location:
Maidstone, Kent, UK
Posts:
310
Plugin Contributions:
0

Re: Hide all Prices but allow checkout -- using ZC as a quotation system

ok, so are yu saying simply go through every site page that is used to display prices and comment out the code that displays the price.

I can do that, my php skills over the past year since playing in OSC, OSCMAX, Zencart and also Joomla have grown at a steady pace, I just wqant to be sure that this is the best way to achieve my goal.

3 Dec 2006, 6:01 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Hide all Prices but allow checkout -- using ZC as a quotation system

No I am saying change 1 function ... that changes 95% of all price displays ...

Then see what is left to address ... and what has to be customized for the shopping_cart and checkout_something pages ...

The display price function is used everywhere to manage the price display ...

3 Dec 2006, 6:14 PM
#7
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Location:
Maidstone, Kent, UK
Posts:
310
Plugin Contributions:
0

Re: Hide all Prices but allow checkout -- using ZC as a quotation system

Ahhhh:unsure: , I see, though sadly I have not a clue which file, assuming you mean this particular function change is required in only a single file.....Can you give me a wee hint as to which file, line etc, lol, I know a fair bit about php but not where the file may be for such a functgion.

Thanks Ajeh

3 Dec 2006, 6:23 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Hide all Prices but allow checkout -- using ZC as a quotation system

Look at the function zen_get_products_display_price in functions_prices.php ...

Start with this one ... it will allow you to alter the price in the bulk of the display of price ...

3 Dec 2006, 7:39 PM
#9
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Location:
Maidstone, Kent, UK
Posts:
310
Plugin Contributions:
0

Re: Hide all Prices but allow checkout -- using ZC as a quotation system

Is this the part your talking about

// Display Price Retail
// Specials and Tax Included
function zen_get_products_display_price($products_id) {
global $db, $currencies;

$free_tag = "";
$call_tag = "";

I have to be honest, I have a vague idea of what its saying.....Get price, use product ID to locate item price, check currencies and output the price per currency, but thats a wild stab in the dark?

What on earth cuold I alter here that woudl do anything? or can I simply tell it to not get anything at all?

3 Dec 2006, 7:55 PM
#10
spottedhaggis avatar

spottedhaggis

Zen Follower

Join Date:
Dec 2005
Location:
Maidstone, Kent, UK
Posts:
310
Plugin Contributions:
0

Re: Hide all Prices but allow checkout -- using ZC as a quotation system

Interesting. I tok the code below, removed products_id and left the rest and it has removed all prices from the shop. This is exactly what I was after, so now I need only edit a few files to remove any price info.

// Display Price Retail
// Specials and Tax Included
function zen_get_products_display_price($products_id) {
global $db, $currencies;

$free_tag = "";
$call_tag = "";
3 Dec 2006, 8:01 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Hide all Prices but allow checkout -- using ZC as a quotation system

You could return something like "quote only" or what ever as well and that will show where ever the price would show ...

3 Dec 2006, 8:55 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: Hide all Prices but allow checkout -- using ZC as a quotation system

Something like this?> DrByte:

You could probably start by editing the functions_prices.php file and telling zen_get_products_display_price() to return an empty string. But that would only prevent display of prices, not the next or components "near" the prices, etc.

3 Dec 2006, 8:57 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Hide all Prices but allow checkout -- using ZC as a quotation system

That's the one ... :smile: