Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Dec 2005
    Location
    Maidstone, Kent, UK
    Posts
    339
    Plugin Contributions
    3

    Default 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?
    My only addon is Gallery addon and can be seen here breezy

  2. #2
    Join Date
    Jan 2004
    Posts
    58,263
    Blog Entries
    3
    Plugin Contributions
    106

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Dec 2005
    Location
    Maidstone, Kent, UK
    Posts
    339
    Plugin Contributions
    3

    Default 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.
    My only addon is Gallery addon and can be seen here breezy

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,718
    Plugin Contributions
    6

    Default 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 ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  5. #5
    Join Date
    Dec 2005
    Location
    Maidstone, Kent, UK
    Posts
    339
    Plugin Contributions
    3

    Default 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.
    My only addon is Gallery addon and can be seen here breezy

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,718
    Plugin Contributions
    6

    Default 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 ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  7. #7
    Join Date
    Dec 2005
    Location
    Maidstone, Kent, UK
    Posts
    339
    Plugin Contributions
    3

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

    Ahhhh , 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
    My only addon is Gallery addon and can be seen here breezy

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,718
    Plugin Contributions
    6

    Default 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 ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  9. #9
    Join Date
    Dec 2005
    Location
    Maidstone, Kent, UK
    Posts
    339
    Plugin Contributions
    3

    Default 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?
    My only addon is Gallery addon and can be seen here breezy

  10. #10
    Join Date
    Dec 2005
    Location
    Maidstone, Kent, UK
    Posts
    339
    Plugin Contributions
    3

    Default 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 = "";
    My only addon is Gallery addon and can be seen here breezy

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How to create groups and hide prices?
    By Apoc in forum Managing Customers and Orders
    Replies: 4
    Last Post: 18 Feb 2008, 09:20 PM
  2. How do I set up the shop in SHOWCASE mode (no checkout, no prices)?
    By windsurflove in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 19 Nov 2006, 05:12 PM
  3. Checkout Button - click once then hide - possible ?
    By DogTags in forum General Questions
    Replies: 1
    Last Post: 1 Sep 2006, 06:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •