Okay
  Public Ticket #3040672
Categories pages CART issue
Closed

Comments

  •  8
    SPYRIDON started the conversation

    Hi,

    How can I fix to hide the CART from items that have attributes on category pages? See files

    I tried from BO Product Settings but is no working. 

    Thanks

    Attached files:  Cart Not good to display here.jpg
      Cart OK to display.jpg

  •  251
    Andrea replied

    Hi
    You double check the quantity of that product. If it has multiple combinations, you need to leave the quantity for the default combination product
    Thanks

    Best Regards,

    Andrea - FieldThemes Support Team

  •  8
    SPYRIDON replied

    Hi,

    I’m sorry but I don’t understand your reasoning.

    Almost all of my products 99% have attributes (many sizes & colors) therefore is better the add to cart icon not to be on the category pages since there are no attributes there, so the customers can go to product page and choose from the attributes their size and colors of their choice.

    Can you tell me how to disable the add to cart icon from the category pages?

    Thanks

  •  251
    Andrea replied

    Hi
    I have replaced your add to cart button with a product view button, it will take you to the product detail page for that product
    If you want to hide it, you can add style
    #category #js-product-list .item-product-list .btn-add-to-cart-list,
    #category #js-product-list .horizontal_mode .button-action .btn-add-to-cart{
    display: none;
    }
    Thanks

    Best Regards,

    Andrea - FieldThemes Support Team

  •  8
    SPYRIDON replied

    Hi,

    Good idea but also has to be done on Front Page (FEATURED PRODUCTS), on product page (RELATED PRODUCTS) and also on this same page when click optional and display products, besides that there is an issue with the choose style tabs on LEFT or BOTTOM as I've mentioned it in my other ticket. see file

    Thanks

    Attached files:  Screenshot_1.jpg

  •  251
    Andrea replied

    Hi

    1. I fixed the related prodcut block for you
    2. Go to the file \modules\fieldtabcateproduct\views\templates\hook\fieldtabcateproduct.tpl and replace the following in it
    <div class="btn-add-to-cart" title="{l s='View product' d='Shop.Theme.Actions'}">
         <a href="{$product.url}" class="btn-product add-to-cart">
             <i class="fa fa-shopping-cart"></i>
         </a>
    </div>
    like the picture below to edit your add to cart button
    https://prnt.sc/5jH8kAmYmQGl
    Thanks

    Best Regards,

    Andrea - FieldThemes Support Team

  •  8
    SPYRIDON replied

    Hi,

    Add to cart Button is OK for now and I’ve already replaced your code:

    <div class="btn-add-to-cart" title="{l s='View product' d='Shop.Theme.Actions'}">      <a href="{$product.url}" class="btn-product add-to-cart">          <i class="fa fa-shopping-cart"></i>      </a> </div>

     as you said. See file 1

    I’d like to try and hide the add to cart button, but I don’t understand what to do exactly with your code:

    #category #js-product-list .item-product-list .btn-add-to-cart-list, #category #js-product-list .horizontal_mode .button-action .btn-add-to-cart{ display: none; }

    I tried to add it in: modern-fashion1/assets/field-css/field_style.css but it didn’t work out. see file 2

    Can you tell me more explicit how to go about with this (the right path location line etc)?

    thanks  

    Attached files:  file 2.jpg
      file 1.jpg

  •  251
    Andrea replied

    Hi
    I don't see the style section that hides the button cart on your field_style.css file.
    Since the previous message you wanted to hide the add to cart button on the category page, that css will hide the add to cart buttons on your category page.
    I have added you another style that will hide all the add to cart buttons on your page
    https://prnt.sc/PRNE4kp5_r4J
    Thanks

    Best Regards,

    Andrea - FieldThemes Support Team

  •  8
    SPYRIDON replied

    Hi,

    EXCELLENT!

    Now I can manage the Add to Cart but I thing when there are attributes is better without the cart (none;)

    This ticket is completed

    Thanks

  •  251
    Andrea replied

    Hi
    If there is any other problem, you can send us feedback, we will check it for you. Wish you a good day.
    Thanks

    Best Regards,

    Andrea - FieldThemes Support Team