Jump to content

Guorilla

Members
  • Posts

    108
  • Joined

  • Last visited

About Guorilla

  • Birthday 05/30/1973

Profile Information

  • Location
    Netherlands
  • Activity
    User/Merchant

Guorilla's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, First to say, yes I know I can upgrade but there's too much custom coding done to our site to get this done easily. So that's why were still working with 1.5.4. I'm trying to get our webshop (www.babynatura.nl) to work in HTTPS so that our customers can shop in a secure webshop. I've tried several ways to get the whole site working in HTTPS, but I'm still facing some problems... At this moment I've got the secure shop surrounding enabled in the admin backed, so all account and cart functions work in a secure connection. When I try to give the whole webshop a secure connection for our customers, the problems begin. It seems I can't get it done fully: Through .htaccess as mentioned in a lot of forum posts things aren't working good, for instance categories are getiing a strange redirect addition in the url and then a 404 page is showing up. What seems to work is the following code change in classes/Tools.php: public static function getShopDomain($http = false, $entities = false) { if (!$domain = ShopUrl::getMainShopDomain()) $domain = Tools::getHttpHost(); if ($entities) $domain = htmlspecialchars($domain, ENT_COMPAT, 'UTF-8'); if ($http) //$domain = 'http://'.$domain; $domain = 'https://'.$domain; return $domain; } The BIG problem then is that product pages won't show in HTTPS but still in HTTP. With all solutions that can be found and implemented the menu get's screwed up, meaning the text is shown bigger as in the non HTTPS surrounding. I don't know if this is clear enough information about my problem, hopefully someone can help me out... Thanks in advance for your time and energy... Kind regards, Marco
  2. Can you explain what you mean Vekia? We really need some coding for this... Let me try what I'm looking for again: At this moment, when a customer adds a product to the cart that is in SALE and they use a % cart rule the SALE price is removed and the original price shows up. That’s not what we want, what we want is that % cart rules can never be used on products that are in SALE. When a customer uses an € amount cart rule they should be able to also buy SALE products. Now, what we want is that the % sales vouchers keep working as they do now, when a customer fills in a % voucher the sales price returns to the normal / original price and then calculates the discount over the normal / original price. But when a customer fills in an € amount voucher, then the sales price has to stay. As we sell these vouchers to our customers, it’s a bit strange that the price of Sales products will change. From what we understand, you want to sell vouchers with a specific € amount. Is that right? Please also confirm if we can add these vouchers as products. This means that an adjustment needs to be made to how the cart will handle different cart rules (% rule and € rule). See Cart Image #1 Here you van see the cart without a cart rule applied and you can see the sales price is calculated on some products. See Cart Image #2 Here you can see the cart with a % cart rule applied and you can see the sales prices are removed and the % cart rule is then calculated over the normal / standard price giving the customer the discount of 15% over the total of the cart. THIS IS WORKING GOOD! See Cart Image #3 Here you see the cart with a € cart rule applied and you can also see here the sales prices are set back to normal / original price and after that the customer get’s the € discount price. THIS IS NOT WORKING GOOD! As we want the € cart rule applied to the cart WITH the sales prices as I tried to make clear in See Cart Image #4. Is this possible you think? Thanks...
  3. Hello Vekia, sorry for the late reaction, but I was on holidays... What I mean is following: For % vouchers/rules: When I order some products which are in sale, with this code the price of the product will get back to the normal price and then is calculating the discount (%), after that the order price is reduced with the discount calculated... This is OK... For money vouchers/rules: When I order some products which are in sale, with this code the price of the product will get back to the normal price and after that the total order price is reduced with the value of the money voucher... This is NOT OK... Because a money voucher should have the possibilities of enjoying the sales prices. If you know what I mean... Thanks, Marco
  4. OK, and then when a client has a 'oney' voucher, they still can buy the sale products? Or then also not? Thanks... ______ EDIT: I see that if I use a 'money' voucher, the price of the sales article is going back to the normal price... How can this be changed? Anyone a clue over here?
  5. Hello, What I discovered today is the following problem... When a customer buys a product that is on sale and after that adds a 'money' cart rule, the price of the sale product is put back to it's old price... This is not what I want... How can this be changed? Anyone a clue? If the cart rule is a % cart rule, I want the sale products to be left out of the cart rule, if you know what I mean. But a customer with a money cart rule should be able to get the sale products at sale price... Thanks...
  6. {* {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity >= 0)} {if isset($static_token)} <a class="ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add&id_product={$product.id_product|intval}&token={$static_token}", true)}" title="{l s='Add to cart'}">{l s='Add to cart'}</a> {else} <a class="ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add&id_product={$product.id_product|intval}", true)} title="{l s='Add to cart'}">{l s='Add to cart'}</a> {/if} {else} <a class="button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a> {/if} {/if} *} <a class="button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a>
  7. Hello, Did exactly what you did... But not working, check the attachment...
  8. Hello Pascal, I tried that, but the problem then is that the button isn't showing...
  9. Hello, In the product list, I want to change the add to cart button to a"view" button... So customers always have to view the product firts, before ordering... I think it's about this code: {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity >= 0)} {if isset($static_token)} <a class="ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add&id_product={$product.id_product|intval}&token={$static_token}", true)}" title="{l s='Add to cart'}">{l s='Add to cart'}</a> {else} <a class="ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add&id_product={$product.id_product|intval}", true)} title="{l s='Add to cart'}">{l s='Add to cart'}</a> {/if} {else} <span class="exclusive">{l s='Add to cart'}</span> {/if} {/if} <a class="button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a> I've tried a lot of things by adding: <a class="button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a> But no view button is shown then... Could someone please put me in the right direction? Thanks, Marco
  10. Hello, I did put this code into CartRules.php and then tried to shop... What works is that there's no reduction given in a % voucher on the products in sale... But the strange thing is that when I try to apply this code to a sales product, in the cart the prices is changed to the normal (not on sale) price... So something is not going the right way... What can be wrong? Thanks...
  11. OK, thanks, will put that on and check error logs... After that I will see what it says...
  12. Hello, I tried to get my site started at a server with php 5.4 running on it, but the onlyh message I'm seeing on screen is Internal Server error 500. I tried to put error reporting on, but nothing is happening there. I just see the same error message. I asked my host to downgrade the php version for a while, but they told me to get it back to php 5.4 asap... Only thing is I can't reproduce the error... Anyone any clue what it could be? Thanks, Marco
  13. Sorry, tijdje niet online geweest hier, is het inmiddels gelukt? Je moet op zoek naar onderstaande code in het bestand invoice.tpl. Dit bestand kan je vinden in de map pdf in de root van je website... {displayPrice currency=$order->id_currency price=$order_invoice->total_shipping_tax_incl} je moet dan incl aanpassen naar excl... Wat ik overigens heb gedaan is gewoon alles inclusief btw op de factuur zetten en dan onderaan het totaal overzicht aan BTW vermelden... Dit is in mijn ogen veel handiger als je rechtstreeks aan consumenten verkoopt en geen groothandel bent...
×
×
  • Create New...