-
Posts
34 -
Joined
-
Last visited
Profile Information
-
Location
turin
-
Activity
User/Merchant
Lucagiaicheca's Achievements
Newbie (1/14)
5
Reputation
-
Maximum size for a downloadable product
Lucagiaicheca replied to evilmc's topic in Installing PrestaShop for the first time
In PS 1.6 go to the Administration > Preferences tab in the Back Office and you'll find a "Maximum size for a downloadable product" setting. -
Hello everybody, my products have very long descriptions with videos and books preview, so the Add to cart button (PS 1.5.1) gets down and down, but I don't want my customers to scroll down so much in order to put the product in the cart. So I thought it could be great to have all of the Add to cart things (button, quantity, price) in the right column. The best would be if this section (including quantity, price and Add to Cart button) could scroll down following the customer focus, but this is something more I can renounce. I know newer PS versions do it normally, but I cannot update my site: I did many changes and I would lose them. Thank you for help, it will be really appreciated! (Attached image is with my browser set to super zoomed out, otherwise you could not see the "Add to Cart" button!)
-
While loop: show subcategories, and display by name.
Lucagiaicheca replied to Lucagiaicheca's topic in Core developers
I managed displaying authors, using category.tpl. Now I cannot sort them by name (I could use arrows in backoffice, but it would take very long). Any suggestion? Here is the code: {if isset($subcategories)} <div id="subcategories"> <h3>ELENCO DELLE CATEGORIE</h3> <ul class="inline_list"> {foreach from=$subcategories item=subcategory} <li class="clearfix"> <!--<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img"> {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a>--> {if $subcategory.name!="Catalogo"} <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> {if $subcategory.description} <p class="cat_desc">{$subcategory.description}</p> {/if}{/if} </li> {/foreach} </ul> <br class="clear"/> </div> {/if} -
While loop: show subcategories, and display by name.
Lucagiaicheca posted a topic in Core developers
Hello everybody, I need help in coding. this i my category scheme: Authors - John - Alex - Billie - Shon - Don't want to display In a CMS page, I need to list all of them (they are a lot), and the listed names need to be links to the categories they refer to. So, if I click con John, I will be sent to john cat page (listing all his books). Of course I need them to be sorted by name. I know I need to take cat with common parent category, make a while cycle to display them (but I would need them sorted by name, it sound impossible to me), but I don't know how to do it... Can you help? -
Product-sort by id
Lucagiaicheca replied to Lucagiaicheca's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
Now I will try to apply Scully's code, fingers crossed! Vekia, it is not true that date_add is the same as ID, in my case at least. When I edit a product, I don't know why it updates both date_add and date_update. Don't know why, but the result is that even if I want new products to display first, if I edit something it jumps in pole position. So I have to connect to cPanel and change date_add. Weird, but it's what's going on here. Kind Regards. -
ahahah, El Patron you are right :-) here's my requirements: 1. CART CUSTOMIZATION. Preamble: Gifts are normal products which cost 0. They all belong to one single category (n.437) which is called "Omaggi". You can see them here: http://www.amrita-edizioni.com/437-omaggi CART RULES I'D WANT TO APPLY: Customers can choose 1 gift if they spend 30 euros or more Customers can choose 2 gift if they spend 60 euros or more Customers can choose 3 gift if they spend 90 euros or more Customers get 15% discount on full prize products if they spend more than 100 euros. NO GIFT. 1. Check how many free products, aka "gift", are present in the cart and pop up an advise (that doesn't let you continue) if the number of "gifts" is higher then guaranteed. 2. If the cart reaches 100 euros, then all free products must be removed from the cart to keep on with the purchase. In fact when a customer reaches 100 euros the cart applies 15% discount on full prize items. Attention: On our site you will find products in "Special offer" that already have 15% discount: http://www.amrita-edizioni.com/riduzione-prezzi. These products: 1. Don't have to be considered in the sum to reach 100 euros, 2. If they are in a cart that's over 100 euro, then discount must not be applied to already discounted products (these products already have 15% discount, we don't want to give another 15% discount).
-
Thank you Vekia, I didn't see this forum section.
-
category product on shopping-cart.tpl
Lucagiaicheca replied to vendocartoni's topic in Core developers
I would need the default_category. When you insert a new product, the form asks for a "Main Category". I mean that one. Vekia, I'm trying to get in touch with you, let me know how can I contact you :-) Luca -
Hi friends. I need to make some easy customization for my shopping-cart. I need a trustable, professional developer to whom I can ask for help in the future too. Help will be paid, of course. Please send me your availability at: lucagiaicheca ( a t) gmail (do t) co m Kind regards. Luca.
-
category product on shopping-cart.tpl
Lucagiaicheca replied to vendocartoni's topic in Core developers
And what if I need only the main category? Thanks in advance. -
Dear Tomerg3, thank you so much for help. I actually checked my smarty version is 3, so you are right. The variable keeps on getting zero. In the image of my cart, close to the product image I put {$pippo} to let me see if it increments. As you can see, on the products there's 1 instead of 0, this means that {if} works and recognizes the category and adds 1 to $pippo. But the next line $pippo is 1 again, even if I have 2 products with the right product category. Above all, when I go back to shopping-cart.tpl and I make it print {$pippo}, it always equals 0 (you can see at the bottom of the page). Sob. Any idea? Thank you so much. :-)
-
Hi, I'm new to smarty so here's my question. In the cart I need to check if each product category equals a certain product category, and if it does then increment +1 a variable. here's my shopping-cart.tpl. My var is called "pippo" {assign var='pippo' value=0} {foreach $products as $product} {assign var='productId' value=$product.id_product} {assign var='productAttributeId' value=$product.id_product_attribute} {assign var='quantityDisplayed' value=0} {assign var='odd' value=$product@iteration%2} {assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId) || count($gift_products)} {* Display the product line *} {include file="./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first} {* Then the customized datas ones*} {if isset($customizedDatas.$productId.$productAttributeId)} {foreach $customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] as $id_customization=>$customization} As you can see the shopping-cart.tpl includes shopping-cart-product-line.tpl, where each product get read and displayed. Inside shopping-cart-product-line.tpl I put my increment (I get product category and if it equals to the one I'm interested to, I want to add 1 to $pippo (thanks to Mr. Milosz for his tutorial on how to add product category in cart) {foreach from=Product::getProductCategoriesFull($product.id_product) item=cat} {/foreach} {if $cat.id_category==437} {math equation='x+1' x=$pippo assign="pippo"} {/if} The loop works a charme, and it actually increments by 1 $pippo if $cat.id_category==437. But the next line $pippo=0 once again. $pippo seems to reset on each loop. Why? My var is assigned=0 outside the {foreach} cycle, so $pippo should increment by one, and then keep the new value, not the old one... HELP PLEASE :-)