osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #11  
Old 03-05-2006, 02:15 PM
Member
 
Join Date: Dec 2002
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Dumb_Question
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #12  
Old 03-06-2006, 06:53 PM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 293
Thanks: 23
Thanked 34 Times in 33 Posts
Rep Power: 5
bkpie has a spectacular aura aboutbkpie has a spectacular aura about
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #13  
Old 03-06-2006, 07:32 PM
Member
 
Join Date: Dec 2002
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Dumb_Question
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #14  
Old 03-06-2006, 11:11 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 443
Thanks: 3
Thanked 75 Times in 70 Posts
Rep Power: 6
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #15  
Old 03-24-2006, 02:45 PM
Member
 
Join Date: Feb 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
spottedhaggis
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #16  
Old 03-24-2006, 05:21 PM
Member
 
Join Date: Feb 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
spottedhaggis
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #17  
Old 03-24-2006, 10:03 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

See this:
http://oscdox.com/index.php?name=PNp...guage+prices+0

and this:
http://oscdox.com/index.php?op=modlo...ame=TxtEnglish
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 07:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax