Jump to content

Woolwich

Members
  • Posts

    16
  • Joined

  • Last visited

1 Follower

Woolwich's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, When a product is out of stock the 'Add to cart' button gets disabled in product list. When I refill the stock the 'Add to cart' button becomes enabled again. So far no problem. But, when a customer buys a product that has been out of stock the 'Add to cart' button gets disabled even if there is 20 products in stock. I then have to open the product in admin and hit 'Save' and the 'Add to cart' button gets enabled again (please notice that I don't do any changes, I just hit the 'Save' button). It is only the 'Add to cart' buttons in the product list that keeps getting disabled, not the 'Add to cart' buttons on the product pages. Here are the code that I guess disables the button: {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 buy_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'}"><span></span>{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'}"><span></span>{l s='Add to cart'}</a> {/if} {else} <span class="noexclusive"><span></span>{l s='Add to cart'}</span> {/if} {/if} Anyone know how to solve the problem?
  2. Is it safe to delete empty css files that belongs to modules or could it cause any problems? My Prestashop have about 5 of these css files that are completely blank.
  3. It's product-list.tpl that I want to edit, not product.tpl. If the products default combination is out of stock I want following code to be shown in the product list instead of the "Add to cart" button even if there are other combinations available; <span class="noexclusive"><span></span>{l s='Out of stock'}</span>
  4. Hi, If a product's default combination is out of stock I want to list the product as out of stock in the product list even if there are other combinations available in stock. How do I do? I guess I need to change following code in some way; {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 buy_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'}"><span></span>{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'}"><span></span>{l s='Add to cart'}</a> {/if} {else} <span class="noexclusive"><span></span>{l s='Out of stock'}</span> {/if} {/if}
  5. Hello, I'm looking for a JS and CSS coder who can do following: 1. When using the search function I don't want the search phrase to be bold. http://mineralsmink....er/boldtext.jpg 2. When adding a product to the cart I want the product's default category to appear underneath the product name in the cart block. http://mineralsmink....ategoryname.jpg 3. I have installed the One Page Checkout module from canin.sk and I need product line on the checkout page designed. I already have the design and graphics, it just need to be coded. The design must be responsive. http://mineralsmink....hoppingcart.jpg Please send a PM if you are interested or need more details. /Woolwich
  6. No, I want to show the products default category descriptions (not the product description). By using following code... {$category->description} ...I can show the category description on the product.tpl page but I want to show the default category description.
  7. Hello! Is it possible to show the default category description of a product in product.tpl? I'm using Prestashop 1.4.7.3.
  8. Is it possible to list a product both as an attribute and a separate product? For example, lets say that I sell a camera that is called "Camera X100". The camera is available in two different colors, green and red. First I want the product listed as "Camera X100" with two attributes available (green and red) in a category called "Cameras". But I also want the green version of the camera listed as an own separate product called "Camera X100 Green" in a category called "Green cameras". Is it possible to do this in some way?
  9. I'm running 1.4 but I managed to modify your code so that it works. Thanks alot for the help!
  10. I want to show number of likes in the top menu. I have never worked with tpl files and Prestashop before and my PHP knowledge is very limited so I'm very confused. The code that I posted in the first post works, the question is just how to get it to the blocktopmenu.tpl.
  11. Hello! How can I add following code to the module blocktopmenu? Should I create a new module or edit blocktopmenu.php? $url = 'http://graph.facebook.com/google'; echo json_decode(file_get_contents($url))->{'likes'}; My PHP knowledge is very limited. Regards, Woolwich
  12. Is it possible to only show attribute instead of attribute group and attribute in shopping-cart-product-line.tpl? For example, instead of showing "Size: XXL" I only want to show "XXL".
  13. Thanks for the help! I got another question: how do I change the "content box" background (see this picture)? /Woolwich
  14. Hello! I'm currently working on my first own Prestashop theme and now I should need some help. 1. How can I make a horizontal menu like this or this? 2. How do I remove the view buttons? 3. I want my products to be shown as this, how do I do? 4. On the "Featured products" on the start page there is a huge space between the product name / description, how can I remove it (see this picture)? I would be very grateful for help! /Woolwich
×
×
  • Create New...