Guest Posted August 15, 2006 Share Posted August 15, 2006 HI all, I need help to change some wording here if possible buyt cannot find the call to it. See image below: Basically I want to change Royal Mail First Class (Delivery Weight : 17 Kg(s)): Just to say Shipping Costs But I still want the shipping information above to show in checkout_shipping.php Anyone know of this edit. Link to comment Share on other sites More sharing options...
Guest Posted August 15, 2006 Share Posted August 15, 2006 Found this code in checkout_shipping.php if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) { $shipping = array('id' => $shipping, 'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'), 'cost' => $quote[0]['methods'][0]['cost']); tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } This is the right part to change, but if I change the code above it also changes on checkout_shipping. I want the checkout_shipping to remain the same and the text on checkout_confirmation to be different. How would I include a call, like if page is checkout_shipping do this and if checkout confirmation do that. Link to comment Share on other sites More sharing options...
dapbnh Posted August 15, 2006 Share Posted August 15, 2006 All you need to do is modify shipping option via admin panel, you have all option in there, fixed shipping, free shipping, FedEx etc. Link to comment Share on other sites More sharing options...
jhsands Posted August 16, 2006 Share Posted August 16, 2006 You can edit the Royal Mail module directly to show you the different name... look in /catalog/includes/modules/shipping BACKUP your current files before editing. Did I mention to BACKUP your current files, first? "I'm not a hero, I'm a firefighter; it is my job to save lives. I'm a Jesus Christ Firefighter saving souls from the flames!" Installed contribs: Almost XP Buttons *** Attribute Sort *** Auto Thumbnail Change *** Column Product Listing (for SPPC v4.0) *** Contact Us Registered *** Country-State Selector 1.3.3J *** CC# Db Mask 1.3 *** Email Order Clickable Link *** Extra Images *** Linkpoint API CVM *** Loginbox Best *** New Spiders *** New Attrib Mgr v.5.0 w/ New Attrib Include *** Multi Product Update *** MySQL Cron *** Pricing per Category *** Product Listing in Columns v2.2 [later upgraded to CPL(SPPC)] *** Product Sort v1.6 *** Seperate Pricing Per Customer v4.15 *** Simple Down for Maintenance [Gokou] *** Ultimate_SEO_URLs_v2.2.2 *** UPS Worldship Export 1.3 *** Welcome Email username & password Link to comment Share on other sites More sharing options...
Guest Posted August 16, 2006 Share Posted August 16, 2006 HI Thanx Jason, but what I require is the info text to show as it is for the checkout_shipping.php page but when in Checkout_confirmation it only shows i.e shipping costs. So I need some code to go in checkout_shipping. IF page = checkout_confirmation echo this, else echo that. But unsure of the commands. Link to comment Share on other sites More sharing options...
Guest Posted August 16, 2006 Share Posted August 16, 2006 create another field in the methods array field of the shipping module for like 'title2' which will hold the alternative description. If title2 is set in your checkout_shipping.php you display that otherwise the regular title. Link to comment Share on other sites More sharing options...
Guest Posted August 16, 2006 Share Posted August 16, 2006 Perfect !!!!!!!!!!!!!!!!!!! A BIG THANK YOU Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2006 Share Posted August 17, 2006 create another field in the methods array field of the shipping module for like 'title2' which will hold the alternative description. If title2 is set in your checkout_shipping.php you display that otherwise the regular title. Hi Mark, tried playing around with this all through the night, but came up with nothing. Can you shed some more light on this and provide a some instructions. Here what I have so far: My Checkout_Shipping page I want to leave as this: However this gives me this on Checkout_confirmation.php You mention creating another array, I can see where the code goes in my shipping/zones.php but unsure what to change here and also in orders.php or checkout_confirmation.php Here is my coding for shipping/zones.php here (text file) and my coding for checkout_confirmation <?php echo $order->info['shipping_method']; ?> This I presume I can change to "shipping_method1" and do a new call, but also on checkout_confirmation is this: <?php if (MODULE_ORDER_TOTAL_INSTALLED) { $order_total_modules->process(); echo $order_total_modules->output(); } ?> The code above, I have no idea what to change to get the desired effect on checkout_confirmation.php just to show the shipping_title and not the delivery information etc. Can you help. Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2006 Share Posted August 17, 2006 ok in your first.txt change this: $shipping_method = MODULE_SHIPPING_FIRST_TEXT_WAY . ' : ' . $shipping_weight . ' ' . MODULE_SHIPPING_FIRST_TEXT_UNITS . ' ' . MODULE_SHIPPING_FIRST_DELIVERY_TIMES; // Text shown on Checkout_shipping to this: if(tep_not_null($method) ) $shipping_method = MODULE_SHIPPING_FIRST_TEXT_WAY; else $shipping_method = MODULE_SHIPPING_FIRST_TEXT_WAY . ' : ' . $shipping_weight . ' ' . MODULE_SHIPPING_FIRST_TEXT_UNITS . ' ' . MODULE_SHIPPING_FIRST_DELIVERY_TIMES; // Text shown on Checkout_shipping Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2006 Share Posted August 17, 2006 Hi Mark, it works a treat, a very big THANK YOU, need a light alteration though if possible, I need to remove the double brackets on checkout_confirmation.php Example of error: Code inserted into modules/zones.php if(tep_not_null($method) ) // Text shown on Checkout_Confirmation $shipping_method = ''; // Leaving this entry blank causes only the shipping title to show i.e Royal Mail 1st Class Std else // Text shown on Checkout_shipping $shipping_method = MODULE_SHIPPING_FIRST_TEXT_WAY . ' : ' . $shipping_weight . ' ' . MODULE_SHIPPING_FIRST_TEXT_UNITS . ' ' . MODULE_SHIPPING_FIRST_DELIVERY_TIMES; Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2006 Share Posted August 17, 2006 actually no that was the brackets around the edit, any customization on the checkout_confirmation.php? Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2006 Share Posted August 17, 2006 Hi Mark, tried that, but it does not work, that removes the brackets around the word Edit. I.E. Shipping Method (Edit) also looked in classes/shipping and found this if (isset($quotes['methods'][$i]['cost']) && tep_not_null($quotes['methods'][$i]['cost'])) { $rates[] = array('id' => $quotes['id'] . '_' . $quotes['methods'][$i]['id'], 'title' => $quotes['module'] . ' (' . $quotes['methods'][$i]['title'] . ')', 'cost' => $quotes['methods'][$i]['cost']); } But removing those brackets failed also. Thank you. Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2006 Share Posted August 17, 2006 Heres my calls in checkout_confirmation: <?php if ($order->info['shipping_method']) { ?> <tr><td class="main"><?php echo '<b>' . HEADING_SHIPPING_METHOD . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td></tr><tr><td class="main"><?php echo $order->info['shipping_method']; ?></td></tr> <?php } ?> and <table width="250" border="0" cellspacing="0" cellpadding="2"> <?php if (MODULE_ORDER_TOTAL_INSTALLED) { $order_total_modules->process(); echo $order_total_modules->output(); } ?> </table> Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2006 Share Posted August 17, 2006 Found it in checkout_shipping.php 'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'), Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2006 Share Posted August 17, 2006 Mark, can you PM me a paypal email address so I can send you a donation for your help here, you have not got a clue how long I have been trying this for and getting no where fast until your involvement. Stuart Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2006 Share Posted August 17, 2006 no it comes from the globals in checkout_confirmation, the cheapest function is for selecting the shipping options in checkout_shipping.php. It's not that. It is already assigned. So I guess you could remove the last 2 characters before the output in checkout_confirmation.php Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2006 Share Posted August 17, 2006 Found it in checkout_shipping.php 'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'), removing the brackets here, caused the brackets to dissappear on checkout_confirmation. Mark, can you PM me a paypal email address so I can send you a donation for your help here, you have not got a clue how long I have been trying this for and getting no where fast until your involvement. Stuart Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.