Claudia M Posted December 14, 2017 Share Posted December 14, 2017 I thought I had the words All In One Shipping removed from my store everywhere. But I logged in as a customer who's order is processing and there it is! If the order is complete it shows like I want. How can I fix this. Thanks for any and all help. Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 14, 2017 Share Posted December 14, 2017 In the skin template content.receipt.php: Find something that looks like: {if !empty($DELIVERY.method)} <div class="row"> <div class="small-6 medium-3 columns">{$LANG.catalogue.delivery_method}:</div> <div class="small-6 medium-9 columns">{$DELIVERY.method}{if !empty($DELIVERY.product)} ({$DELIVERY.product}){/if}</div> </div> {/if} There will at least be {$DELIVERY.method} and {$DELIVERY.product} The problem is that the $DELIVERY.method is generally the name of the folder, and are specifically wanting to overrule that if and only if the method is All_In_One_Shipping. You want the method to show if it is anything else. You might notice some anomalies: 'USPS' is the method and 'First Class' is the product. I do not know where the way it is expressed is coming from. Quote Link to comment Share on other sites More sharing options...
Claudia M Posted December 15, 2017 Author Share Posted December 15, 2017 The USPS and First Class are names of zones in the All in One Shipping plugin I created. This is the only shipping I use. Here is what I have in content.receipt {if !empty($DELIVERY.url)} <div class="row"> <div class="small-6 medium-3 columns pad-bottom bold">{$LANG.orders_en.shipped_via}:</div> <div class="small-6 medium-9 columns pad-bottom "><a class="txt" href="{$DELIVERY.url}" target="_blank">{$DELIVERY.product}</a></div> </div> <div class="row"> <div class="small-6 medium-3 columns pad-bottom bold">{$LANG.orders_en.tracking_info}:</div> <div class="small-6 medium-9 columns pad-bottom"><a class="txt" href="{$DELIVERY.url}" target="_blank">{$DELIVERY.url}</a></div> </div> {elseif !empty($DELIVERY.tracking)} <div class="row"> <div class="small-6 medium-3 columns bold">{$LANG.catalogue.delivery_method}:</div> ( Can change this to {$LANG.orders_en.shipped_via} ) <div class="small-6 medium-9 columns">{$DELIVERY.method}{if !empty($DELIVERY.product)} ({$DELIVERY.product}){/if}</div> Is this what I need to change? If so how. </div> <div class="row"> <div class="small-6 medium-3 columns bold">{$LANG.orders_en.tracking_info}:</div> <div class="small-6 medium-9 columns"> <a href="{$DELIVERY.url}" target="_blank">{$DELIVERY.url}</a></div> </div> {/if} Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 15, 2017 Share Posted December 15, 2017 That is where to change it. But instead, I found code in CC6112 that asks for a "Use this name" for the DELIVERY.method. The AIOS module doesn't use it, but, if you are willing, I would like to send you a set of code edits to the AIOS module to experiment with. The edits simply add the ability for the AIOS module to answer that question. It seems once the "Use this name" value is obtained, it gets propagated everywhere. Everywhere I have checked, that is. So, "All_In_One_Shipping" can get changed to just "Shipping" or whatever you want. Getting back to the images posted above, is the second image from admin? If not, where is it from? Quote Link to comment Share on other sites More sharing options...
Claudia M Posted December 15, 2017 Author Share Posted December 15, 2017 Both images are from when I log in as the respective customer. Two different customers. This is there order history - click view details. Sure, Brian, send me the code!! Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 15, 2017 Share Posted December 15, 2017 I was asking because of the phrases "Delivery Method" versus "Shipped Via". Quote Link to comment Share on other sites More sharing options...
Claudia M Posted December 15, 2017 Author Share Posted December 15, 2017 in the code above - $LANG.orders_en.shipped_via - I added that to the english language file to say "Shipped Via" instead of Delivery Method Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 15, 2017 Share Posted December 15, 2017 Sure, but assuming the screen grabs were taken at the same time, how does one get the new phrase but the other does not? Quote Link to comment Share on other sites More sharing options...
Claudia M Posted December 15, 2017 Author Share Posted December 15, 2017 That was my question. They weren't take at exactly the same time. They are from different customers and one order is complete (shows All in one shipping) and the other customer is processing (shows Shipped Via: ). Should I put a class="txt" href="{$DELIVERY.url}" target="_blank">{$DELIVERY.product}</a> in the tracking section too? Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 15, 2017 Share Posted December 15, 2017 Won't hurt. 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.