Jump to content

uddhava

Members
  • Posts

    577
  • Joined

  • Last visited

  • Days Won

    2

uddhava last won the day on December 5 2022

uddhava had the most liked content!

Contact Methods

Profile Information

  • Location
    Amsterdam
  • Interests
    e-commerce solutions
  • Activity
    Freelancer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

uddhava's Achievements

Newbie

Newbie (1/14)

68

Reputation

  1. You need to change all the entries for each language that you are using. - You need to disable caching and recompile.
  2. @ janthemanson The {if $logged} is used to show the link only when people are not logged in. This was a question of a customer of mine. So the code should be : (works ONLY with Friendly URLS) // File: product.tpl // Line: 225 (depends on desired location) // This code will display a translatable link that will display a fancybox popup. // The content for this fancybox is a CMS page that is displayed as content-only. // Change the CMS ID with the correct cms page. // Change 'rewrite' with the actual friendly url of your cms page // true : if you use SSL // Change the width&height of the fancybox with javascript and the size of the cms page. <p><a href="{$link->getCMSLink('8','rewrite',true)}?content_only=1" class="iframe" rel="nofollow"> {l s='Shipping Terms'}</a></p> // Add this at the end of the file (after {/if} ) <script type="text/javascript"> $('a.iframe').fancybox({ 'type' : 'iframe', 'width':500, 'height':900 }); </script> I was wondering if this would be possible to use WITHOUT friendly urls. Is there a smarty variable we can check?
  3. If you want to change the following texts : "All manufactures" "All Suppliers" and other texts, then you can do so easily in the translations for the blocktopmenu.
  4. There are a few places where you need to change the "Home". The breadcrumbs translation is one of them. The other is the database: A default PS has the Root & Home Category. These cannot be changed and will not be visible on the FO. But the blocktopmenu uses the Home category to display all the subcat and subsub cats in the menu. If you want to change the name of the Home category then you need to do this in the database. Table: category_lang : ID 1 Column: name You need to change all the rows with ID 1. Each language has its own name. Remember that the blocktopmenu will display ALL sub & subsub categories at once. So this will only work on a "mega" menu. Adapt the CSS when needed.
  5. // File: product.tpl // Line: 225 (depends on desired location) // This code will display a translatable link that will display a fancybox popup. // The content for this fancybox is a CMS page that is displayed as content-only. // Change the CMS ID with the correct cms page. // Change the width&height of the fancybox with javascript and the size of the cms page. <!-- 108Bits --> {if !$logged} <p><a href="{$link->getCMSLink('8')}?content_only=1" class="iframe" rel="nofollow"> {l s='Shipping Terms'}</a></p> {/if} <!-- END 108Bits --> // Add this at the end of the file (after {/if} ) <script type="text/javascript"> $('a.iframe').fancybox({ 'type' : 'iframe', 'width':500, 'height':900 }); </script>
  6. This also works // File: product.tpl // Line: 225 (depends on desired location) // This code will display a translatable link that will display a fancybox popup. // The content for this fancybox is a CMS page that is displayed as content-only. // Change the CMS ID with the correct cms page. // Change the width&height of the fancybox with javascript and the size of the cms page. <!-- 108Bits --> {if !$logged} <p><a href="{$link->getCMSLink('8')}?content_only=1" class="iframe" rel="nofollow"> {l s='Shipping Terms'}</a></p> {/if} <!-- END 108Bits --> // Add this at the end of the file (after {/if} ) <script type="text/javascript"> $('a.iframe').fancybox({ 'type' : 'iframe', 'width':500, 'height':900 }); </script>
  7. Maybe you can use this ? // File: product.tpl // Line: 225 (depends on desired location) // This code will display a translatable link that will display a fancybox popup. // The content for this fancybox is a CMS page that is displayed as content-only. // Change the CMS ID with the correct cms page. // Change the width&height of the fancybox with javascript and the size of the cms page. <!-- 108Bits --> {if !$logged} <p><a href="{$link->getCMSLink('8')}?content_only=1" class="iframe" rel="nofollow"> {l s='Shipping Terms'}</a></p> {/if} <!-- END 108Bits --> // Add this at the end of the file (after {/if} ) <script type="text/javascript"> $('a.iframe').fancybox({ 'type' : 'iframe', 'width':500, 'height':900 }); </script>
  8. Here is the situation : - Upgrade from 1.4.9 to 1.6 with the PS update tool. No errors - Using default theme & No caching - Categories block worked, even on homepage - Enabled multistore and created a second shop on a seperate url - copied all products to 2nd store Now the category block stopped displaying correctly on the 1st shop. It will not display on the homepage and on the 1st subcat it will display only when the "Current category" option is enabled in the plugin config page. Enabling the "Root category or Home" option is not working and then the block will dissappear totally - Removed 2nd shop & site - disabled multistore - reset block categories (3x) - removed block categories - Reset other modules - switched theme - removed caching index files. disabled all caching - enabled/disabled left/right column settings - tried everything. (even deleting the block categories settings from the database) But the category block will NOT display anymore on the homepage, and only displays as the current category on 1st subcat pages... Im lost after trying for 2 days. It looks like a bug, but i cant put my finger on it. Any ideas?
  9. Since 1.6? has the order number been changed in favor for an order name. Each order has a random order reference of random letters like so "GMPXVMKDR".[/size] We offer the bankwire payment option. So our customers have to transfer the total amount to our bank account. And with each payment they have to supply the order number. Most customers "forget" this anyway, but if they dont then they have a new challenge. Typing the random order name correctly. So to not annoy our customers and make our telephone support also easier i decided to bring back the regular order number. Most email templates have the new order name variable. So you have to change most email templates. Find this code : {$order_name} And substitute it with : ${id_order} Voila. Order numbers are back in PS 1.6
  10. I was looking for an easy way to remove the product count on (sub) categories in PS1.6. There were some forum posts available that discussed this, but they deal with modules. The current product count on categories is handled by the category.tpl and category-count.tpl in the theme's root folder. Option one - Remove count completely Edit /themes/YOURTHEME/category.tpl line 73 : Old code <h1 class="page-heading{if (isset($subcategories) && !$products) || (isset($subcategories) && $products) || !isset($subcategories) && $products} product-listing{/if}"><span class="cat-name">{$category->name|escape:'html':'UTF-8'}{if isset($categoryNameComplement)} {$categoryNameComplement|escape:'html':'UTF-8'}{/if}</span>{include file="$tpl_dir./category-count.tpl"}</h1> New Code <h1 class="page-heading{if (isset($subcategories) && !$products) || (isset($subcategories) && $products) || !isset($subcategories) && $products} product-listing{/if}"><span class="cat-name">{$category->name|escape:'html':'UTF-8'}{if isset($categoryNameComplement)} {$categoryNameComplement|escape:'html':'UTF-8'}{/if}</span></h1> Option 2 - Remove count but keep message "There are no products in this category" Edit /themes/YOURTHEME/category-count.tpl - line 30 Old Code {else} {if $nb_products == 1} {l s='There is %d product.' sprintf=$nb_products} {else} {l s='There are %d products.' sprintf=$nb_products} {/if} New Code {* {else} {if $nb_products == 1} {l s='There is %d product.' sprintf=$nb_products} {else} {l s='There are %d products.' sprintf=$nb_products} {/if} *} I just commented out the ELSE clause with {* *} so this part will not run during execution. You could also delete the code entirely but i left it in for comparison. Option 3 - Hide product count You could also just hide the category count using CSS. Edit the global.css (around line 6169) Find this code: .page-heading span.heading-counter { font: bold 13px/22px Arial, Helvetica, sans-serif; float: right; color: #333333; text-transform: none; margin-bottom: 10px; } Replace it with this : page-heading span.heading-counter { display:none; }
  11. I got confused from the multiple "advices" given on this forum. So here the correct answer: The Homeslider settings are controlled by 2 files: /modules/homeslider/js/homeslider.js /themes/YOURTHEME/js/modules/homeslider/js/homeslider.js The 2nd js file "overrides" the first one. So you need to change/add your settings in the 2nd file. the bxslider is quite powerful. Check out http://bxslider.com/options Here is the info from the BXSlider support page : mode Type of transition between slides default: 'horizontal' options: 'horizontal', 'vertical', 'fade'
  12. You can also try the module that Tomer is supplying for free. http://www.presto-changeo.com/en/prestashop-free-modules/20-google-sitemap-generator.html
  13. The option to change the window size of the tinyMCE editor can be found here: [b]js/tinymce.inc.js[/b] On line 16 (PS v1.4.6.2) you can enable the window resizing. On line 19,20 you can set the window width and height. After changing these variables always clear the cache of your browser. And these changes will be lost again after an upgrade
  14. The option to change the window size of the tinyMCE editor can be found here: YOURPRESTASHOPROOT/js/tinymce.inc.js On line 16 (PS v1.4.6.2) you can enable the window resizing. On line 19,20 you can set the window width and height. After changing these variables always clear the cache of your browser. And these changes will be lost again after an upgrade
  15. I just checked the carts and another one was generated. Now i got the server timing figured out. So : Cart € 2103,72 - generated on 2011-12-24 11:33:27 In the log, on this exact time i find this log : 82.192.66.202 - - [24/Dec/2011:13:33:27 +0300] "GET /winkelwagen?qty=1&id_product=1616&token=865dce6ff424ddfbdf7cbe2cf766b359&add HTTP/1.0" 302 629 "-" "TwengaBot-2.0 (http://www.twenga.com/bot.html)" The bot keeps getting 302/301. But it seems not to stop... The robots.txt tells it NOT to look there. So whats happening?
×
×
  • Create New...