jjanguda Posted July 6, 2004 Share Posted July 6, 2004 nrlatsha, I just noticed that you released EZ Fields 5.0 and installed it successfully.. Thank you so much for all your work.. I guess the problem that Minuteago mentioned above has been solved by modifying catalog/includes/modules/new_products.php. But, I found other places where I want retail price to be shown... You will see what I mean by looking at the picture below. As you can see, this page just shows me product name, final price, and a buy now button. I don't know which file I have to take a look at in order to change some.. What I'd like to do with this is this.. Product name Product Manufactuer Retail Price Your Price Your Save Buy Now button So, it'll probably look like this. Die Hard With A Vengeance Manufactuer: WD Retail Price: $100 Your Price: $40.00 You Save: $60 (60%) Buy Now Another problem I have is displaying a product model number in catalog/specials.php. What I did was this.. I added p.products_model in $specials_query_raw (like this) $specials_query_raw = "select p.products_id, pd.products_name, p.products_price, p.products_retail_price, p.products_tax_class_id, p.products_image, p.products_model, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " and added .'Model Number: ' . $products_new['products_model']. <td align="center" width="33%" class="smallText"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $specials['products_image'], $specials['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials['products_id']) . '">' . $specials['products_name'] . '</a><br>'. 'Model Number: ' . $products_new['products_model'] .'<s>' . $retail . '<br>Wholeslae Price: ' .$currencies->display_price($specials['products_price'], tep_get_tax_rate($specials['products_tax_class_id'])) . '</s><br><strong><span class="productSpecialPrice">Special Price: ' . $currencies->display_price($specials['specials_new_products_price'], tep_get_tax_rate($specials['products_tax_class_id'])) . '<br>'.'<br></strong></span></td>' What I see in catalog/specials.php is The Matrix Model Number: Retail Price: $39.99 Wholeslae Price: $30.00 Special Price: $29.00 What happened to the model number? It only shows me a text part(model number), but no model number.. hmmm.. I haven't much to say about this contribution, but Awesome :lol: :lol: Quote Link to comment Share on other sites More sharing options...
nrlatsha Posted July 7, 2004 Author Share Posted July 7, 2004 Another problem I have is displaying a product model number in catalog/specials.php. What I did was this.. I added p.products_model in $specials_query_raw (like this) $specials_query_raw = "select p.products_id, pd.products_name, p.products_price, p.products_retail_price, ?p.products_tax_class_id, p.products_image, p.products_model, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " and added .'Model Number: ' . $products_new['products_model']. <td align="center" width="33%" class="smallText"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $specials['products_image'], $specials['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials['products_id']) . '">' . $specials['products_name'] . '</a><br>'. 'Model Number: ' . $products_new['products_model'] .'<s>' . $retail . '<br>Wholeslae Price: ' .$currencies->display_price($specials['products_price'], tep_get_tax_rate($specials['products_tax_class_id'])) . '</s><br><strong><span class="productSpecialPrice">Special Price: ' . $currencies->display_price($specials['specials_new_products_price'], tep_get_tax_rate($specials['products_tax_class_id'])) . '<br>'.'<br></strong></span></td>' What I see in catalog/specials.php is The Matrix Model Number: Retail Price: $39.99 Wholeslae Price: $30.00 Special Price: $29.00 What happened to the model number? It only shows me a text part(model number), but no model number.. hmmm.. I haven't much to say about this contribution, but Awesome :lol: :lol: jjanguda - Ahh, you just made a small mistake, the query in specials.php isn't $products_new['something'] its $specials['something'] So you'll have to change your line of: ' . $products_new['products_model'] .'<s>' . $retail To: ' . $specials['products_model'] .'<s>' . $retail That should take care of it... Is that the column contrib you have installed for listings? I have the same one, but haven't written the code for it yet. The earliest you would probably see taht is this weekend, if its the same contrib. If not, you can paste the code for products_listing.php here and I'll see if I can help you out. But the same thing, I'll probably only be able to get around to it this weekend at the earliest. I only have time for short and easy replies for the next couple of days. Quote 9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard) Replace that and you're fine... Link to comment Share on other sites More sharing options...
strictlypc Posted July 7, 2004 Share Posted July 7, 2004 Hi Noel, I have installed the Master Products contribution. Can you tell me how to incorporate your codes into this: $master_product_query=tep_db_query("select * from " . TABLE_PRODUCTS_TO_MASTER . " where master_id = " . $_GET['products_id']); if (tep_db_num_rows($master_product_query) > 0) { ?> <tr> <td><?php echo TEXT_OPTIONS?></td> </tr> <?php // create column list $define_list = array('PRODUCT_LIST_MODEL' => SLAVE_LIST_MODEL, 'PRODUCT_LIST_NAME' => SLAVE_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => SLAVE_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => SLAVE_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => SLAVE_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => SLAVE_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => SLAVE_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => SLAVE_LIST_BUY_NOW); asort($define_list); $column_list = array(); reset($define_list); while (list($key, $value) = each($define_list)) { if ($value > 0) $column_list[] = $key; } $select_column_list = ''; for ($i=0, $n=sizeof($column_list); $i<$n; $i++) { switch ($column_list[$i]) { case 'PRODUCT_LIST_MODEL': $select_column_list .= 'p.products_model, '; break; case 'PRODUCT_LIST_NAME': $select_column_list .= 'pd.products_name, '; break; case 'PRODUCT_LIST_MANUFACTURER': $select_column_list .= 'm.manufacturers_name, '; break; case 'PRODUCT_LIST_QUANTITY': $select_column_list .= 'p.products_quantity, '; break; case 'PRODUCT_LIST_IMAGE': $select_column_list .= 'p.products_image, '; break; case 'PRODUCT_LIST_WEIGHT': $select_column_list .= 'p.products_weight, '; break; } } $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price, pm.master_id, pm.slave_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_MASTER . " pm, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and p.products_id=pm.slave_id and pm.master_id=" . $_GET['products_id']; if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) { for ($i=0, $n=sizeof($column_list); $i<$n; $i++) { if ($column_list[$i] == 'PRODUCT_LIST_NAME') { $HTTP_GET_VARS['sort'] = $i+1 . 'a'; $listing_sql .= " order by pd.products_name"; break; } } } else { $sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1); $sort_order = substr($HTTP_GET_VARS['sort'], 1); $listing_sql .= ' order by '; switch ($column_list[$sort_col-1]) { case 'PRODUCT_LIST_MODEL': $listing_sql .= "p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_NAME': $listing_sql .= "pd.products_name " . ($sort_order == 'd' ? 'desc' : ''); break; case 'PRODUCT_LIST_MANUFACTURER': $listing_sql .= "m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_QUANTITY': $listing_sql .= "p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_IMAGE': $uni .= "pd.products_name"; break; case 'PRODUCT_LIST_WEIGHT': $listing_sql .= "p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_PRICE': $listing_sql .= "final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; } } ?> <tr> <td><?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td> </tr> <?php } //END MASTER PRODUCTS Thanks, David Quote Link to comment Share on other sites More sharing options...
jjanguda Posted July 8, 2004 Share Posted July 8, 2004 thanks for your help.. i guess I modified products_listing.php but i don't know where I've edited... I'll see this weekend when you're able... BTW, can you take a look at the Facy split_page_results thread.. I posted a question for you... Thanks again!! Quote Link to comment Share on other sites More sharing options...
Guest Posted July 8, 2004 Share Posted July 8, 2004 @beosz just - beside the mail to you - for public: <tr> <td> <?php // BOF: This is the buy_two_module and if there is a wording in the beginning of the produkt model text then // this will not appear because it makes no sense to bundle a bundle and so on... if (BUY_TWO_YES_NO == 'yes') { if (ereg('^'.BUY_TWO_BUNDLE_MODEL_NAMING.'_', $product_info['products_model'])) { // echo 'TEST this is a bundle'; } else { include(DIR_WS_MODULES . 'buy_two_module.php'); } } else { } // buy_two_module EOF ?> </td> <td> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?> </td> </tr> It is no good to create extra tables/rows/columns so delete the <tr><td> pairs cheers Kai Quote Link to comment Share on other sites More sharing options...
beosz Posted July 11, 2004 Share Posted July 11, 2004 us currency shows in product_info.php but other currency shows no symbol i upgraded from 4.00 to 5.01 when i change currency it doesn't show the BATH my thai currency but strangely index.php is appeared. Any suggestion? Quote Link to comment Share on other sites More sharing options...
nrlatsha Posted July 12, 2004 Author Share Posted July 12, 2004 Do you have a link beosz? I don't see anything wrong with the module, they all use the same function to get the prices. Then again, I just noticed the same thing happens with euros as well... I'll have to take a harder look at this. Quote 9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard) Replace that and you're fine... Link to comment Share on other sites More sharing options...
nrlatsha Posted July 12, 2004 Author Share Posted July 12, 2004 I think I see the problem, does your symbol go onto the end of the number? Quote 9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard) Replace that and you're fine... Link to comment Share on other sites More sharing options...
jjanguda Posted July 13, 2004 Share Posted July 13, 2004 nrlatsha, I guess that you've answered my questions partially.. I found other places where I want retail price to be shown... You will see what I mean by looking at the thread on the top of this page.(I attached a picture. =pink layout=) As you can see, this page just shows me product name, final price, and a buy now button. I don't know which file I have to take a look at in order to change some.. What I'd like to do with this is .. Product name Product Manufactuer Retail Price Your Price Your Save Buy Now button So, it'll probably look like this. Die Hard With A Vengeance Manufactuer: WD Retail Price: $100 Your Price: $40.00 You Save: $60 (60%) Buy Now Just like the one in main page(what's new product for July box) Please need your help here.. Quote Link to comment Share on other sites More sharing options...
nrlatsha Posted July 16, 2004 Author Share Posted July 16, 2004 nrlatsha, I guess that you've answered my questions partially.. I found other places where I want retail price to be shown... You will see what I mean by looking at the thread on the top of this page.(I attached a picture. =pink layout=) As you can see, this page just shows me product name, final price, and a buy now button. I don't know which file I have to take a look at in order to change some.. What I'd like to do with this is .. Product name Product Manufactuer Retail Price Your Price Your Save Buy Now button So, it'll probably look like this. Die Hard With A Vengeance Manufactuer: WD Retail Price: $100 Your Price: $40.00 You Save: $60 (60%) Buy Now Just like the one in main page(what's new product for July box) Please need your help here.. jjanguda - That is a separate contrib issue there, when I get time, I'll take a look at it, but I have some customer websites I have to finish first... Quote 9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard) Replace that and you're fine... Link to comment Share on other sites More sharing options...
PrettyWolfie Posted July 19, 2004 Share Posted July 19, 2004 Ok, I am feeling the most techno-dummie one can be! :blink: This is the Step 1 on the EZier manual: Add a new field in products table in database thru MySQL *SQL for all steps is located in the install folder. ALTER TABLE `products` ADD `products_retail_price` decimal(10,2) default NULL AFTER `products_price`; INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'EZier New Fields Decimal Places', 'NEW_FIELDS_DECIMAL', '0', 'Set the number of decimal places for your new fields', 1, 98, now(), now(), NULL, NULL); Where do I do this?!?!? <_< If someone save me from the the monster of Dumbness!!! :wub: Quote Link to comment Share on other sites More sharing options...
PrettyWolfie Posted July 19, 2004 Share Posted July 19, 2004 :D Ok, I am not soooo dummie after all! Found it! :P Quote Link to comment Share on other sites More sharing options...
skizzer Posted August 10, 2004 Share Posted August 10, 2004 Hi, Please excuse me if this has been covered before. The thought of reading 12 pages worth of posts was a little overwhelming. :blink: I'm in the process of installing v5.0, and I'm stuck on Step 16 (line 86 of catalog/products_new.php). I had previously installed No_Stock_No_Checkout, and there's some code that's already been changed in that area. I'm not very smart about PHP, so I'm not sure how to go about merging the two, if that's even possible. Just in case anybody can help me with this particular problem, here's the code that I have: ?> <tr> <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new['products_image'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td> <td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td> <?php if ($products_new['products_quantity'] <=0) { ?> <td align="right" valign="middle" class="main"><?php echo tep_image_button('button_in_cart_na.gif', IMAGE_BUTTON_IN_CART_NA); ?></td> <?php } else { ?> <td align="right" valign="middle" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>'; ?></td> <?php } ?> </tr> <tr> <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> Any help provided would be most appreciated. Thank you! Quote Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2004 Share Posted August 17, 2004 First of all nice contribution, but it doesn't exactly do what I need. The product page is fine, but how do I get rid of this: I just want to display the retail price strike-through and next to it my price in the same field. No new columns. Are there any other similar contributions? Couldn't find anything. Thanks Quote Link to comment Share on other sites More sharing options...
nrlatsha Posted August 17, 2004 Author Share Posted August 17, 2004 :D Ok, I am not soooo dummie after all! Found it! :P PrettyWolfie - Glad to see you got it worked out. Hi, Please excuse me if this has been covered before. The thought of reading 12 pages worth of posts was a little overwhelming. :blink: I'm in the process of installing v5.0, and I'm stuck on Step 16 (line 86 of catalog/products_new.php). I had previously installed No_Stock_No_Checkout, and there's some code that's already been changed in that area. I'm not very smart about PHP, so I'm not sure how to go about merging the two, if that's even possible. Just in case anybody can help me with this particular problem, here's the code that I have: ?> ? ? ? ? ?<tr> ? ? ? ? ? ?<td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new['products_image'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td> ? ? ? ? ? ?<td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td> ?<?php ? ?if ($products_new['products_quantity'] <=0) { ?> ? ? ?<td align="right" valign="middle" class="main"><?php echo ?tep_image_button('button_in_cart_na.gif', IMAGE_BUTTON_IN_CART_NA); ?></td> ? ? ?<?php ? ?} else { ?> ? ? ?<td align="right" valign="middle" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>'; ?></td> ? ? ?<?php ? ?} ?> ? ? ? ? ?</tr> ? ? ? ? ?<tr> ? ? ? ? ? ?<td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> ? ? ? ? ?</tr> Any help provided would be most appreciated. Thank you! Skizzer - Sorry for the late reply, do you still need someone to look over the code? I'll take a look at it tonight if you do. First of all nice contribution, but it doesn't exactly do what I need. The product page is fine, but how do I get rid of this: I just want to display the retail price strike-through and next to it my price in the same field. No new columns. Are there any other similar contributions? Couldn't find anything. yeahright - You can turn those fields/columns off through the admin side, is that the only change you are looking for? As far as I know, this is the only retail field generator in contribs right now. If you'd like to offer an idea, I'm always open to suggestions. I don't see it getting implemented for a couple of weeks (months probably) at least. PM me if you're looking for something sooner. Quote 9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard) Replace that and you're fine... Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2004 Share Posted August 17, 2004 You can turn those fields/columns off through the admin side, is that the only change you are looking for? As far as I know, this is the only retail field generator in contribs right now. If you'd like to offer an idea, I'm always open to suggestions. I don't see it getting implemented for a couple of weeks (months probably) at least. PM me if you're looking for something sooner. Right I must have overlooked it. Thanks. That only turns off the columns tho. How would I get the retail price strike-through next to the shop price (in the same column)? Quote Link to comment Share on other sites More sharing options...
sharkey Posted August 18, 2004 Share Posted August 18, 2004 Awesome contribution, thanks! I just read all 12 pages and that answered one question. I do have a similar question to yeahright, is there a way to make retail price be strikethru? Thanks. Quote Link to comment Share on other sites More sharing options...
Paulie Posted August 18, 2004 Share Posted August 18, 2004 I too would like to know how to put a strikethrough on the retail prices. Also, how can I make "Price" say "Your Price"? I believe I made this change once before but I can't remember how the heck I did it! :wacko: And how can I remove the "You Save" line from appearing on the product detail page? Thanks, Paul Quote Link to comment Share on other sites More sharing options...
PrettyWolfie Posted August 19, 2004 Share Posted August 19, 2004 (edited) ;) Everybody wants to know how to put the strike through!!!! Edited August 19, 2004 by PrettyWolfie Quote Link to comment Share on other sites More sharing options...
sharkey Posted August 20, 2004 Share Posted August 20, 2004 (edited) I too would like to know how to put a strikethrough on the retail prices. Also, how can I make "Price" say "Your Price"? I believe I made this change once before but I can't remember how the heck I did it! :wacko: And how can I remove the "You Save" line from appearing on the product detail page? Thanks, Paul catalog/includes/languages/english.php // Begin EZier new fields define('TEXT_PRODUCTS_RETAIL_PRICE_INFO', '<br>Retail Price: '); define('TEXT_PRODUCTS_PRICE_INFO', '<br>Your Price: '); define('TEXT_PRODUCTS_PRICE_INFO_REGULAR', '<br>Regular Price: '); define('TEXT_PRODUCTS_SAVE_INFO', '<br><font color=red>Savings: '); define('TEXT_PRODUCTS_RETAIL_PRICE', 'Products Retail Price: '); define('TEXT_PRODUCTS_PRICE_SPECIAL_INFO', '<br><font color=red>Special Price: '); define('TEXT_PRODUCTS_PRICE_SPECIAL_CUST', '<br><font color=red>Your Discounted Price: '); // EZier new fields end As far as removing the you save line from the products page I guess you can remove the whole contribution. :lol: This is what the install guide says. List Price : $ 79.99 Our Price : $ 39.99 You Save: 50% ( *Note: There are options to select for this display) You Save: 50% You Save: $50 You Save: $50 (50%) Edited August 20, 2004 by sharkey Quote Link to comment Share on other sites More sharing options...
Paulie Posted August 20, 2004 Share Posted August 20, 2004 (edited) Actually, that wasn't it. What I was really looking for was "Price" listed on the product category page (where all of the products are listed in a category). I was able to find it. The code is actually in catalog/includes/languages/english/index.php ?define('HEADING_TITLE', 'Let\'s See What We Have Here'); ?define('TABLE_HEADING_IMAGE', ''); ?define('TABLE_HEADING_MODEL', 'Model'); ?define('TABLE_HEADING_PRODUCTS', 'Product Name'); ?define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); ?define('TABLE_HEADING_QUANTITY', 'Quantity'); ?define('TABLE_HEADING_PRICE', 'Price'); <--change to 'Your Price' ?define('TABLE_HEADING_WEIGHT', 'Weight'); ?define('TABLE_HEADING_BUY_NOW', 'Buy Now'); ?define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); ?define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); ?define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); ?define('TEXT_SHOW', '<b>Show:</b>'); ?define('TEXT_BUY', 'Buy 1 \''); ?define('TEXT_NOW', '\' now'); ?define('TEXT_ALL_CATEGORIES', 'All Categories'); ?define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { ?define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { ?define('HEADING_TITLE', 'Categories'); } // Begin EZier new fields define('TABLE_HEADING_RETAIL_PRICE', 'Retail'); <--change to 'Retail Price' (optional) define('TABLE_HEADING_SAVE', 'Savings'); // End EZier new fields Regarding the You Save line, I would at least like to remove the % from displaying, and only display the $ amount saved. I'll keep looking for it, but if someone else can tell me how to do it, I'd appreciate it. Still would like to know if a strikethrough can be done on the product/category page. Noel? Thanks, Paul Edited August 20, 2004 by Paulie Quote Link to comment Share on other sites More sharing options...
sharkey Posted August 20, 2004 Share Posted August 20, 2004 (edited) Oh, you mean this page? Go to Admin > Configuration > Product Listing >Display Savings (EZier New Fields) and change to 0 . That will remove the savings column. I misunderstood what page you were talking about. Go to Admin > Configuration > Product Listing > Display Retail Price (EZier New Fields) changes the format of how it shows such as $40 or 20% or $40 (20%) Right now I'm looking thru the code for strikethru as I know this line creates it but I'm not sure about the above page. $retail = '</a><br><style=main><s>' . TEXT_PRODUCTS_RETAIL_PRICE_INFO . $whats_new_retail_price . '</s>'; and this $retail = '</a><style=main><s>' . TEXT_PRODUCTS_RETAIL_PRICE_INFO . $currencies->display_price($products_new['products_retail_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s>'; and this $lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> But the question is, where is it missing? I'm not a coder just a hacker so I'll keep looking until I find it or someone more qualified answers Edited August 20, 2004 by sharkey Quote Link to comment Share on other sites More sharing options...
sharkey Posted August 20, 2004 Share Posted August 20, 2004 By the way, thanks for the idea. I changed catalog/includes/languages/english/index.php // Begin EZier new fields define('TABLE_HEADING_RETAIL_PRICE', '<s>Retail</s>'); <------ (changed from Retail) define('TABLE_HEADING_SAVE', 'Savings'); // End EZier new fields So now the table heading shows as strikethru. :D Still working on the actual price. :( Quote Link to comment Share on other sites More sharing options...
Paulie Posted August 20, 2004 Share Posted August 20, 2004 (edited) By the way, thanks for the idea. I changed catalog/includes/languages/english/index.php You're welcome! By the way, I think the area of code we should be looking at is in catalog/includes/modules/product_listing.php. I believe that <s> </s> code should go somewhere in here: // EZier New Fields added case 'PRODUCT_LIST_RETAIL_PRICE': $lc_align = 'right'; if ((tep_not_null($listing['products_retail_price'])) && ($listing['products_retail_price']) > 0) { $lc_text = '<font color="#55508a">' . $currencies->display_price($listing['products_retail_price'], tep_get_tax_rate($listing['products_tax_class_id'])); } else { $lc_text = ' '; } break; Just can't figure out where to put it. I know this must be the general area where it goes because I was able to change the font color="#55508a"> to something else and it worked! Will keep trying.... Paul Edited August 20, 2004 by Paulie Quote Link to comment Share on other sites More sharing options...
sharkey Posted August 20, 2004 Share Posted August 20, 2004 Yes, I figured strikethru out!!! Change // EZier New Fields added case 'PRODUCT_LIST_RETAIL_PRICE': $lc_align = 'right'; if ((tep_not_null($listing['products_retail_price'])) && ($listing['products_retail_price']) > 0) { $lc_text = '<font color="#55508a">' . $currencies->display_price($listing['products_retail_price'], tep_get_tax_rate($listing['products_tax_class_id'])); } else { $lc_text = ' '; } to // EZier New Fields added case 'PRODUCT_LIST_RETAIL_PRICE': $lc_align = 'right'; if ((tep_not_null($listing['products_retail_price'])) && ($listing['products_retail_price']) > 0) { $lc_text = ' <s>' . $currencies->display_price($listing['products_retail_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>;'; } else { $lc_text = ' '; } in catalog/includes/modules/product_listing.php You lost the font color (it goes black) but you get the coveted strikethru!! :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.