Has anyone replaced the hardcoded text with defined text? I need to do this for my multilanguage site, but am not great with php, so I am having trouble with the syntax. If anyone can help me put the defined variables in correctly, I'd appreciate it.
Original code:
in admin/includes/languages/english/order_status_email.php I have defined:Code:if (zen_not_null($track_id1)) { $notify_comments .= "\n\n<br /><br />Your " . CARRIER_NAME_1 . " Tracking ID is " . $track_id1 . " \n<br /><a href=" . CARRIER_LINK_1 . $track_id1 . ">Click here</a> to track your package. \n<br />If the above link does not work, copy the following URL address and paste it into your Web browser. \n<br />" . CARRIER_LINK_1 . $track_id1 . "\n\n<br /><br />It may take up to 24 hours for the tracking information to appear on the website." . "\n<br />"; }
Can anyone give me the correct statement to replace the hardcoded text with the defined text?Code:define('TY_PT_1','Your'); define('TY_PT_2','Tracking ID is'); define('TY_PT_3','click here'); define('TY_PT_4','to track your package.<br /><br />If the above link does not work, copy the following URL address and paste it into your Web browser.<br/><br/>'); define('TY_PT_5','It may take up to 24 hours for the tracking information to appear on the website.');
Thanks!
Hello,
Any way to have the sidebox show only if user is logged in?
i tried searching the thread but didn't find anything, if there's a post about it please forgive me, and advise
Thanks
Hello,
i'm also trying to get the sidebox in a multilingual environment, i was able to add the header translation to the french.php file but where can i add a translation for the "Track your orders" link?
Thanks everyone!
Here's what I ended up doing to make the emails work in my multilanguage shop. I don't use the sidebox, so sorry, I can't help there.
For each of your languages, in admin/includes/languages/YOUR_LANGUAGE/order_status_email.php
Add to the bottom (replace the defined text with your language as necessary):
In admin/includes/functions/extra_functions/common_orders_functions.php find // TY TRACKER 4 BEGINCode:define('TY_PT_1','Your'); define('TY_PT_2','Tracking ID is'); define('TY_PT_3','Click here'); define('TY_PT_4','to track your package.<br /><br />If the above link does not work, copy the following URL address and paste it into your Web browser:<br/>'); define('TY_PT_5','<br><br>It may take up to 24 hours for the tracking information to appear on the website.');
Replace the whole section with this:
Code:// TY TRACKER 4 BEGIN ---------------------------------------------- $status = $status_info->fields['orders_status_id']; $track_id1 = $status_info->fields['track_id1']; $track_id2 = $status_info->fields['track_id2']; $track_id3 = $status_info->fields['track_id3']; $track_id4 = $status_info->fields['track_id4']; $track_id5 = $status_info->fields['track_id5']; if (zen_not_null($status_info->fields['comments']) && $status_info->fields['comments'] != '' && $_POST['notify_comments'] == 'on') { $notify_comments = EMAIL_TEXT_COMMENTS_UPDATE . $status_info->fields['comments'] . "\n\n<br><br>"; } if (zen_not_null($track_id1)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_1."\n".TY_PT_2.' '.$track_id1."\n\n<br/><br/> <a href=".CARRIER_LINK_1.$track_id1.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_1.$track_id1."\n".TY_PT_5."\n\n"; } if (zen_not_null($track_id2)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_2."\n".TY_PT_2.' '.$track_id2."\n\n<br/><br/> <a href=".CARRIER_LINK_2.$track_id2.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_2.$track_id2."\n".TY_PT_5."\n\n"; } if (zen_not_null($track_id3)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_3."\n".TY_PT_2.' '.$track_id3."\n\n<br/><br/> <a href=".CARRIER_LINK_3.$track_id3.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_3.$track_id3."\n".TY_PT_5."\n\n"; } if (zen_not_null($track_id4)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_4."\n".TY_PT_2.' '.$track_id4."\n\n<br/><br/> <a href=".CARRIER_LINK_4.$track_id4.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_4.$track_id4."\n".TY_PT_5."\n\n"; } if (zen_not_null($track_id5)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_5."\n".TY_PT_2.' '.$track_id5."\n\n<br/><br/> <a href=".CARRIER_LINK_5.$track_id5.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_5.$track_id5."\n".TY_PT_5."\n\n"; } // END TY TRACKER 4 -------------------------------------------------
Last edited by abcisme; 15 Nov 2012 at 02:21 PM.
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
The readme and the leading post of this support thread also states very clearly how the mod works:
There is no need/reason to put this on an EZ page since the tracking info is readily available on the "My Account" page. It is specific to the customer, so even if you got it on an EZ Page (again WHY??) The EZ page would have to be secured so that your customers only saw THEIR shipping/tracking information.-There is a separate sidebox that show the customers past orders. Customer can track their orders from the sidebox or from the "My Account" page
The install is very straight forward. Based on your posts all over the forum, it appears as if you have missed something in the install.
The readme files which come with Ty Package Tracker also states very clearly in at LEAST two places that the add-on is indeed v1.5 compatible. (The Ty Package Tracker downloads page also provides the Zen Cart compatibility data)
As I stated on the other thread, please don't take this the wrong way, but I think you might want to give some consideration to paying for some assistance to help you get things working for you..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Found this posted on the forum.. thought I would share it here on the support thread for this mod (since it is a helpful post regarding this mod)
Integrate ShipRush with TY Package Tracker: http://www.zen-cart.com/showthread.p...77#post1147777
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
I had a coupple questions about this add-on before installing it:
- Does this version of Dual Pricing support products which are priced by attribute? i.e. I want to offer wholesale pricing on certain product attributes but not on others.
- Do customer groups work with dual pricing? i.e. can I establish a wholesale price and also assign the wholesale customers to a customer group which has additional discounts? i.e. wholesale = $9.99 customer group offers 25% discount so they now pay $7.50?
Thanks for any advice or guidance you can offer.
Bookmarks