Jump to content

artofadornment

Members
  • Posts

    102
  • Joined

  • Last visited

About artofadornment

  • Birthday December 18

Profile Information

  • Location
    Vancouver, BC Canada
  • Activity
    User/Merchant

Recent Profile Visitors

4,902,864 profile views

artofadornment's Achievements

Newbie

Newbie (1/14)

  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

29

Reputation

  1. [Canada Post Rates Calculator 1.1 with CP Sell Online account, PS 1.5.3] Hey everyone, something strange has happened. With no module problems for ages, suddenly here in 2017 some have popped up. I've been using PS 1.5 for many years and haven't changed any shipping settings in a very long time, so I don't think it's my fault... 1.) Priority Worldwide: services no longer display in the checkout (checked carrier enabled, weight range set, tested with address where service is supposed to be available, etc.). Why would it suddenly not be displaying? Has anyone else noticed this? 2.) Tracked Packet INTL: incorrect rates display, yet rates for Tracked Packet USA display fine (checked any coupons/discounts being enabled, weight range set, discount level set at CP Sell Online, etc.). I noticed today that my shopping cart charged a UK customer $29.09, however the postage will actually cost me about $35. The cart should have displayed a rate closer to $38. Any ideas as to what's happening here, or how I might fix it? And I guess I should also ask: does anyone know if Canada Post has made any of their own backend changes recently? So frustrating... thank you in advance for your help! Elaine
  2. I've been reading this thread and I think I know which files to change (PS 1.5.3), but I don't know what code to write. I'd like to be able to add a variable for the customer's email address, and be able to use it in several email templates in the main "mails" folder (order_canceled, cheque, shipped, etc.). If I were to edit classes/Mails.php, what would be the code for adding a new variable for customer email address? $template_vars['{shop_logo}'] = Tools::getShopDomain(true, true).__PS_BASE_URI__.'img/'.Configuration::get('PS_LOGO_MAIL', null, null, $id_shop); $template_vars['{shop_name}'] = Tools::safeOutput(Configuration::get('PS_SHOP_NAME')); $template_vars['{shop_url}'] = Tools::getShopDomain(true, true).__PS_BASE_URI__.'index.php'; $template_vars['{my_account_url}'] = Context::getContext()->link->getPageLink('my-account', true, Context::getContext()->language->id); $template_vars['{guest_tracking_url}'] = Context::getContext()->link->getPageLink('guest-tracking', true, Context::getContext()->language->id); $template_vars['{history_url}'] = Context::getContext()->link->getPageLink('history', true, Context::getContext()->language->id); $template_vars['{color}'] = Tools::safeOutput(Configuration::get('PS_MAIL_COLOR')); $template_vars['{email}'] = ??? Or do I need to edit a different file? Thank you to anyone who can help! Elaine
  3. I need the same thing, a URL that points to specific shopping cart IDs (I want to put URLs in customer follow-up emails to cut down on abandoned carts). I'm sure it must be possible somehow, because you can view abandoned carts in the back office and even turn them into orders. For example, a URL to a cart in the BO view is: https://www.website.com/admin/index.php?controller=AdminCarts&id_cart=2568&viewcart&token=abcedefg So I'm thinking that a FO URL might look something like this: http://www.website.com/index.php?controller=Cart&id_cart=2568&viewcart Does anyone know the syntax needed to make a URL that would display a cart in the FO? Thanks in advance! Elaine
  4. Bumping this topic - I'm having the same error and am not sure what to do to fix it. Has anyone found a solution?
  5. I'm still having problems with Priority Worldwide USA and Priority Worldwide INTL carriers not appearing in the shopping cart (see first post above). Honestly, I don't know what I've done wrong. Has anyone else has this problem, or have a suggestion how I might fix it? I'm going to contact Canada Post about this, but I have feeling they're going to tell me to talk to a Prestashop developer (like they have with just about everything I've ever asked them). Edit: fixed it myself. Like Priority Courier above, it was the syntax in modules/canadapost/sql-install.php. The first instance of each service MUST have underscores and is case-sensitive. So it's "PRIORITY_WORLDWIDE_USA" and "Priority_Worldwide_INTL". And you should NOT check the "Use Priority Worldwide Pak" box at SellOnline - go figure! I'm still interested in a fix for the Shipping Estimation module... anyone?
  6. I have been doing some searching and there are a few replies on the Forge that mention a couple of bug fixes to Shipping Estimation (a/k/a Carrier Compare) and even an updated version of the module, however there is no mention of where these code fixes are or where you can download the new version. Can anyone tell us if there is a fix, or if there is a newer version than Shipping Estimation 1.2, and if so, where we can get it? I'm running PS 1.5.3 and can't upgrade to anything higher (long story) so I'm hoping I can just get my hands on the module itself. Thanks!
  7. It didn't quite work but you got me on the right track. In the end, I sort of cheated and added this to custom.css: #usefull_link_block li{ color: #DEDEDE; } #usefull_link_block li:hover { text-decoration: underline; } It affects all of the elements in that block, but they're all supposed to have that anyway, it may be redundant but at least it works! Thank you so much for all of your time Pascal, I'm SO happy to have this fixed!! Marking as solved. Elaine
  8. Thank you Pascal! I set it up for both extra left and extra right hooks and your solution works great! I am only having one minor style problem: after your last two steps (adding the classes and changing the js), some of the CSS on the "add to favorites" display text has stopped working, in both right and left hooks. This text should be white to match other links on the site, then underlined only when moused over, just like the "add to wishlist" and "send to a friend" links do. See attached pic - in this image my cursor is hovering over the wishlist link (cursor didn't appear on screenshot, sorry about that) just to show the underline. As you can see, the favorites link has reverted to the default page text colour. I am just not sure where to fix this. Other than that, it works brilliantly!
  9. Hi Pascal, that is because there is no problem with the module hooked into the Extra Left hook. I have attached some screenshots below of what it looks like if I try to hook it to the Extra Right. I played with the code a little and the module does actually work now (products are added/removed from favorites) however the display of the link has broken into three unordered list links. Since you have now seen how it should behave (the little heart icon shows, the text displayed changes from "add to favorites" to "remove from favorites"), I need to fix it so it will behave the same way on the right as it did on the left. I don't want to enable it on the right on our live site until it is working as it should. First image is before product is added to favorites, second is after. It also seems to be floating in a strange place, but I think I can fix that with some CSS to align directly under the Add To Cart button (I have not changed the old CSS yet). My code line 46-55: public function install() { if (!parent::install() || !$this->registerHook('displayMyAccountBlock') || !$this->registerHook('displayCustomerAccount') || !$this->registerHook('displayLeftColumnProduct') || !$this->registerHook('displayRightColumnProduct') || !$this->registerHook('extraLeft') || !$this->registerHook('displayHeader')) return false; and I inserted this at line 102, I copied the code for hookDisplayLeftColumnProduct, pasted it in, and changed it to hookDisplayRightColumnProduct): public function hookDisplayRightColumnProduct($params) { include_once(dirname(__FILE__).'/FavoriteProduct.php'); $this->smarty->assign(array( 'isCustomerFavoriteProduct' => (FavoriteProduct::isCustomerFavoriteProduct($this->context->customer->id, Tools::getValue('id_product')) ? 1 : 0), 'isLogged' => (int)$this->context->customer->logged, )); return $this->display(__FILE__, 'favoriteproducts-extra.tpl'); }
  10. I just remembered, you will not see the "add to favorites" link on the product page unless you are logged in. I've taken a screenshot here so you can see what it looks like by default without having to register.
  11. Hello! I'm using PS 1.5.3 and I've read many posts on how to transplant modules to new hooks, however Favorite Products doesn't seem to work properly if I follow the usual steps. I tried enabling a new hook in favoriteproducts.php by adding !$this->registerHook('displayRightColumnProduct'), copying lines 90-99 and changing part of that to public function hookDisplayRightColumnProduct($params), and using the "transplant a module" feature, but it did not quite work. The module displays in the correct position in the FO, but the formatting is broken (it appears as an unordered list of links rather than just one link, I don't think this is a CSS issue) and the functions (add/remove from favorites) don't work. I've never changed a hook before, so I think I must be doing something wrong or missing something - could anyone please help? Thank you in advance! Elaine
  12. Hello! I'm hoping someone can help with positioning some modules, which may be either a hook problem, a CSS problem, or both. My setup: PS 1.5.3, two-column layout theme, responsive design. On the product page, when screen size is smaller than 959px, the displayLeftColumnProduct hook hides. The modules in this hook are Favorite Products, Blockwishlist and Send To A Friend, and don't show if you're not logged in. What I would like to do: When the screen size changes to smaller than 959px, I would like those modules to appear under the Add To Cart button (on right-hand side, displayRightColumnProduct) instead. Or at least just Favorite Products. I currently have a span class under the Add To Cart button that shows some big AddThis sharing buttons only when the screen is under 959px, perhaps I could take advantage of that in some way? Here's screenshots of a product page at different screen sizes (full, 959px and 519px) so you can see what it looks like logged in. Thank you in advance to anyone who can offer a little advice! Elaine
  13. Got some outside help on this, so I'll share the solution here and mark this as solved. I've added some CSS classes to this to fix my alignment issues, if you want to try this you'd probably have to work out your own style if it doesn't look right. blockcurrencies.tpl - edit the div to this: <div id="currencies_block_top"> <form id="setCurrency" action="{$request_uri}" method="post"> <p> <input type="hidden" name="id_currency" id="id_currency" value=""/> <input type="hidden" name="SubmitCurrency" value="" /> {l s='Currency' mod='blockcurrencies'}: <img src="../../img/l/{$cookie->id_currency}.jpg" alt="" class="currency_flag" /> {$blockcurrencies_sign} </p> <ul id="first-currencies" class="currencies_ul"> {foreach from=$currencies key=k item=f_currency} <li {if $cookie->id_currency == $f_currency.id_currency}class="selected"{/if}> <a href="javascript:setCurrency({$f_currency.id_currency});" title="{$f_currency.name}"> <img src="../../img/l/{$f_currency.id_currency}.jpg" alt="" class="currency_flag" /> <span class="currency_text">{$f_currency.sign}</span></a> </li> {/foreach} </ul> </form> </div> CSS file to edit: themes/(your theme)/css/modules/blockcurrencies/blockcurrencies.css
  14. Update on problem #2: On my own I figured out how to put the symbols in next to the flags, however they are not aligning properly - see photo attached. This looks like a CSS issue, however I don't know where or how to make the drop-down list "wider" so everything will display nicely inline. All I did was change the <a> tag to: <a href="javascript:setCurrency({$f_currency.id_currency});" title="{$f_currency.name}"> <img src="../../img/l/{$f_currency.id_currency}.jpg" alt="" style="float:left;"> <span style="float: right;">{$f_currency.sign}</span> </a>
×
×
  • Create New...