osCmax v2.5 User Manual
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

product prices not showing on product page

This is a discussion on product prices not showing on product page within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; ok...looks like i fixed it for the time being...i uploaded the backup file...and that worked.....looks like the price is not ...

      
  1. #11
    Member
    Join Date
    Dec 2002
    Posts
    87
    Rep Power
    0


    Default

    ok...looks like i fixed it for the time being...i uploaded the backup file...and that worked.....looks like the price is not showing because of the quantity pricebreak mod that the programmer installed...


    I guess for the time being i would have to live without quantity pricebreak...

  2. #12
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    362
    Rep Power
    10


    Default

    Dumb_question

    Could you upload your backup product_info.tpl template (the one that is working) so I can do a compare with winmerge to see where mine is messing up? Thanks

  3. #13
    Member
    Join Date
    Dec 2002
    Posts
    87
    Rep Power
    0


    Default

    I checked it with beyond compare.......
    it is the coded added by "Kerul" that is messing it up...just do a search for "Kerul" in the previous post ...you should find it at two places..this is the code that he added for "separet pricing "..mod

  4. #14
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    26


    Default

    here is the offending code, right?

    Code:
    /Added by Kerul
    if(isset($customer_group_id)){
      $scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id = '" . $customer_group_id . "'");
      if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
        $products_price = $scustomer_group_price['customers_group_price'];
      }
    }
    else{
    
    $pf->loadProduct((int)$HTTP_GET_VARS['products_id'], (int)$languages_id);
    $products_price=$pf->getPriceString();
    }
    
    //End by Kerul
    okay, let's see what he is going...
    1a) if there is a customer group the
    2a) query the database and get the group price for the product
    3a) if there was a record returned, replace the price with the price from that record
    1b) else
    2b) use a non-existant class (to this point I don't see where "pf -> loadproduct" may live) to overwrite the price
    1c) end if

    Then, just after that he comments out everything that has to do with pricing, from special to seperate price per customer.

    A simple fix that should allow you to keep the code you have in place would be to remove the 2b code and then move the 1c to a point AFTER the end of his commented out code and then uncomment the code he commented out.

    This would run his mod and then, if not his mod, would run the old code for setting price. This would clean up the code removing the class function that he inserted to replace the code that did function.

    Now, since I don't know the mod, or what it does, it may be redundant with some of the code that is commented out and there may be some small portion of the Seperate Price Per Customer that may need to be commented out, but the portion on setting the price from the default method should be kept (and not replaced with some class->function call that may not work).

    Good luck.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  5. #15
    Member
    Join Date
    Feb 2006
    Posts
    63
    Rep Power
    0


    Default

    ok so I have renamed the fallback template folder and uploaded the stock OSCMAX v2 one again, stil have the same problem, and as I have not modified the shop files in any way at all I have to assume my problem is in the database.

    I added a product and this item also shows the exact same issue, so surely this has to be the database? Right?

  6. #16
    Member
    Join Date
    Feb 2006
    Posts
    63
    Rep Power
    0


    Default

    Looks like my issue was somewhere inside the configuration table, no idea where. I created a new database, ran the standard mysql script for OSCMAX inside the new DB, rana compare on the old OSC and new created db, did the changes, and copied accross a select few tables from the OSC to the OSCMAX.

    Address_book
    Categories
    Categories_description
    Customers
    Customer_info
    ORders
    Orders_products
    Orders Total
    Products
    Products_description
    Products_options
    Product_options_values
    Product_options_values_to_Products_options
    Products_stock
    Products_to_categories
    Zones (I have uk counties in zones)

    I then went to the shop and found I had errors regards the cache so I copied the cache folder accross, solved that issue

    Now everything is in the new db, customers come up no errors, products no errors, everything is nearly perfect

    My prices display in the shop as they should be, however I have a $ instead of a £

    I have cereated the uk currency and set it to default but it remains dollars

    IF I edit the USD one to UK I lose the prices.

    lol, anyone know where I am missing something here, prices ok but in Dollars and needs to be pounds.

  7. #17
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Product Attribute Prices Getting Rid of Extra Chars in (+$8)
    By Dubious in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 11-13-2006, 01:22 PM
  2. HELP!!!! WHOLESALE PRICE NOT SHOWING ON PRODUCT PAGE
    By Judith in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 10-26-2005, 02:32 AM
  3. Product prices are all $0
    By adam231 in forum osCommerce 2.2 Installation Help
    Replies: 4
    Last Post: 10-21-2004, 02:08 AM
  4. No product prices in new install?
    By Kristine in forum osCMax v1.7 Installation
    Replies: 3
    Last Post: 04-02-2004, 11:06 AM
  5. one product 3 prices
    By Dumb_Question in forum osCommerce 2.2 Modification Help
    Replies: 6
    Last Post: 01-05-2003, 03:51 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
  •