stolarz
Members-
Posts
15 -
Joined
-
Last visited
Profile Information
-
Activity
Developer
stolarz's Achievements
-
My custom form on product page doesn't go php script
stolarz replied to stolarz's topic in Core developers
Ok, I've found solution, I had form in form. Topic to close. -
My custom form on product page doesn't go php script
stolarz replied to stolarz's topic in Core developers
HI, thanks for reply. I've made that change on my local version, nothing has changed unfortunately. Do you have any other idea where the problem could be? May it be that some js file block or change my custom form? -
Hi, I've made form like this in product.tpl in my theme directory and also php script in the same directory. My problem is, that it doesn't work, it doesn't go to script. Here is example: http://vigdm.no-restrictions.com/moda-damska/560-sukienka.html Form is under gold button "Do koszyka", first two fields are required, third is optional (additional info) and last is required (email). If you notice some mistake, please let me know Form in product.tpl <form method = "post" action ={"../themes/villaitalia_gold/rent.php"}> <input name = "link" type = "hidden" value = {$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}> <label> Od <input name = "date_from" type = "date" required> </label> <label> Do <input name = "date_to" type = "date" required> </label> <label> Dodatkowe info <input name = "additional_info" type = "textarea"> </label> <label> Twój mail <input name = "email" type = "email" required> </label> <input name = "submit" type = "submit"> </form> Php script rent.php like this <?php $linkToProduct = $_POST['link']; $dateFrom = $_POST['date_from']; $dateTo = $_POST['date_to']; $additionalInfo = $_POST['additional_info']; $email = $_POST['email']; $message = "Produkt: $linkToProduct \nOd: $dateFrom \nDo: $dateTo"; $recipient = "[email protected]"; $subject = "Wypozyczenie produktu"; $mailheader = "From: $email \r\n"; mail($recipient, $subject, $message, $mailheader); header( 'Location: http://vigdm.no-restrictions.com/content/15-stylizacja-wyslana-do-wyceny') ;
-
Hello, I've got a problem with displaying price, which differs in category view and product view. It happens only for some products on sale (not for all). In category view price displays correctly, but in product view price it is different. I attach some screens, you can also check it here: http://vigdm.no-restrictions.com/index.php?id_category=28&controller=category (cat view, sixth row) http://vigdm.no-restrictions.com/index.php?id_product=532&controller=product (prod view) I've cleared cache, layered navigation block is not install on my prestashop, I've made improvemnts from this topic (http://forge.prestashop.com/browse/PSCFV-11694), and I've changed cache_default_product for this product in ps_product and ps_product_shop. I've got 1.5.6.2 PS version. EDIT I've found, that if I remove combinations of products, price displays correctly, but when I created new, there is still error.
-
Original images load instead of thumbnails
stolarz replied to stolarz's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
Hey, regerating .htaccess worked! And I had to regenarate thumbnails couple of times without deleting existing thumbs. Thanks musicmaster for all your help! -
Original images load instead of thumbnails
stolarz replied to stolarz's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
Yes, you're right, but it's not thumbnail large_default, but it's resized original image: http://zapodaj.net/0077b96ca5c2a.png.html It's 800 KB, instead of 12,5KB. On server I've got this files: http://zapodaj.net/e57ce72e2bd57.png.html And here is an image, how it looks like on my local: http://zapodaj.net/ceb28757827a3.png.html It is large-default version of an image 253x253. -
Original images load instead of thumbnails
stolarz replied to stolarz's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
There is only original image after regenrating thumbnails, all thumbs which existed before are deleted (I don't know why). But when I add new product, the thumnails create correctly, I can see in image directories all thumbnails and correct datestamp. But, still, vigdm.com displays only original image instead of thumbnails. What is strange, regenerate thumbs works fine on my local vigdm.loc, and images displays correctly, though the code is the same. I hope that now I've explained clear. And yes, I know that it is strange. -
Original images load instead of thumbnails
stolarz replied to stolarz's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
Yes, I did that, and after this action, all my thumbs disappeared and nothing new was created, so there is only original image. But when I add a product, thumbnails are created correctly, but still only original image is loaded. -
Original images load instead of thumbnails
stolarz replied to stolarz's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
http://zapodaj.net/9b7aeb6e255fe.png.html Here are my preferences -
Original images load instead of thumbnails
stolarz replied to stolarz's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
Size of large_default is 270x270. Yes, I've done that and it didn't fix the problem. [Edit} Now I found, that after regenerating, the large_default thumb was deleted and nothing new was created. So, my new problem is, that prestashop doesn't create thumbnails. -
Hi, I've got a problem with images in prestashop. Here is the product test, which I added a minute earlier: http://vigdm.com/49-dla-niego When you try 'Inspect element' and check the image, the original size is 2101x2420, but it should be 270x270, because that is the size of thumbnail, which definetely exist. On my local version evertyhing is fine, thumbnails display correctly. Here is the code from product-tpl: <figure class="products-site-image products-site-image-active"> <div> <img class="ajax-image-loader{*-list*}" src="{$img_dir}one-pixel-opacity.png" data-src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html'}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /> {if isset($product.new) && $product.new == 1}<img class="new" src="{$img_dir}new_pl.png">{/if} </div> </figure>
-
I've got some issue with Prestashop product-list. Here is a link to my site: http://vigdm.no-restrictions.com/index.php?id_category=29&controller=category You can see small link 'Add to cart' under each product. Unfortunately, the product is not added to cart. When I'm on product page, everytyhing works fine. The code is copied from the default prestatshop theme, it's goes like this: <div class = "cart-logo-on-product"> {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 id="add_to_cart" class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html'}" title="{l s='Add to cart'}"><span></span>{l s='Add to cart'}</a> {else} <a id ="add_to_cart" class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}", false)|escape:'html'}" title="{l s='Add to cart'}"><span></span>{l s='Add to cart'}</a> {/if} {else} <span class="exclusive"><span></span>{l s='Add to cart'}</span><br /> {/if} {/if} </div> I need to add product to cart from the product list, do you know what can be wrong?