Home Forums Basel support forum wine shop send product 6 bottles

wine shop send product 6 bottles

Viewing 30 posts - 1 through 30 (of 110 total)
  • Author
    Posts
  • #11288

    ciano
    Participant

    Goodmorning,
    I chose the fantastic basel for a wine shop!
    The sale and ‘for 6 bottles. What and ‘the best choice for this?
    – default quantity ‘add cart’ set to 6 bottles and single price? how?
    – 6 indicate in stock and price for 6?
    What and ‘the best solution? Thankyou !
    Regards

    #11295

    Artem Temos
    Keymaster

    Hello,

    Thank you for choosing our theme and contacting us.

    Since this functionality comes with WooCommerce plugin and not with our theme you may need to customize it in the plugin. Here a tutorial that should help you https://docs.woocommerce.com/document/adjust-the-quantity-input-values/

    Kind Regards
    XTemos Studio

    #11306

    ciano
    Participant

    Hello,
    thanks for the answer, now the product page the “add to cart” has the default to 6 bottles, but ‘it created another problem: in the shop page, the “add to cart” brings up a shopping cart with side quantity to 1x. where you can ‘intervene?

    Kind Regards
    ciano

    #11309

    Artem Temos
    Keymaster

    Could you please send us your website link so we can see it?

    #11313

    ciano
    Participant

    Hello,

    i’am in still beta, but the page works!

    The simple product page is OK and you can ‘see the link:
    http://www.montespada.it/_index.php/?product=luna-smeralda

    but
    in this page http://www.montespada.it/_index.php/?post_type=product
    shopping cart side and the quick view the quantity ‘remain at 1

    Thank you

    #11324

    Artem Temos
    Keymaster

    Could you please attach screenshots also?

    Thank you in advance

    #11329

    ciano
    Participant

    Hello,

    i have screenshots

    Regards

    Attachments:
    You must be logged in to view attached files.
    #11331

    ciano
    Participant

    hello,
    screenshots 1

    Attachments:
    You must be logged in to view attached files.
    #11335

    Artem Temos
    Keymaster

    Try to copy basel/woocommerce/global/quantity-input.php file to the child theme and add the following code snippet to this file

    <script type="text/javascript">jQuery('.quantity .minus').click();</script>

    Regards

    #11337

    ciano
    Participant

    Hello,

    thank you, works only for the quick view,
    for the “add to cart” and ‘as before, reason?

    Regards

    #11341

    Artem Temos
    Keymaster

    Hi,

    What do you mean by “for the add to cart and as before”?

    #11345

    ciano
    Participant

    hello
    screenshot1 as the quantity in the side menu after click on add to cart marks 1x
    regards

    #11346

    Artem Temos
    Keymaster

    But it shows how many items you have added to the cart. We just checked and it works correctly for us. If we add 6 products that it shows 6 products in the cart.

    #11348

    ciano
    Participant

    Hello,

    the problem occurs in the sidebar “shopping cart” as shown in the screenshot attached!
    Do not It appears the quantity 6x but 1x

    Regards

    Attachments:
    You must be logged in to view attached files.
    #11352

    Artem Temos
    Keymaster

    Hi,

    It appears 1 because you have added only 1 item to cart. Just remove it and add 6. People will not have any abilities to add less then 6.

    #11357

    ciano
    Participant

    Hello,

    … Just remove it and add 6.? where you can do this? what php code and ‘you can do this?

    thanks for your time and patience !

    Regards

    #11359

    Artem Temos
    Keymaster

    Hi,

    We mean just open your cart page and clear it. We don’t ask you to make any changes in PHP.

    #11362

    ciano
    Participant

    Hi,

    I do not understand this! my cart page has only the cart pink element,
    What you take away?

    #11366

    Artem Temos
    Keymaster

    Probably, we are talking about different things and don’t understand each other. Please, explain the issue again. And write step by step instruction how we can reproduce the issue on your website. Also, attach some screenshots.

    Thank you in advance

    #11369

    ciano
    Participant

    Hi,

    step by step
    To version beta a:
    http://www.montespada.it/_index.php/?post_type=product

    -click on “add to card” wine bottle ->Sole di Sardegna
    – It appears on the right side of the article with the quantity ‘1x,(NOOOOOOO)
    I want it to be 6x (YEEEEEESS)

    Regards

    Attachments:
    You must be logged in to view attached files.
    #11371

    Artem Temos
    Keymaster

    Now we got it. The problem occurs because you don’t have a quantity input there. This article should help you https://docs.woocommerce.com/document/override-loop-template-and-show-quantities-next-to-add-to-cart-buttons/

    Regards

    #11375

    ciano
    Participant

    Hi,

    I’m sorry, but the problem is not resolved, help my !
    Regards

    #11379

    Artem Temos
    Keymaster

    Hi,

    Actually, we don’t see that you even added this code to your website. Anyway, you can try one more solution. Create a file in your child theme woocommerce/loop/add-to-cart.php and add the following code there

    <?php
    /**
     * Loop Add to Cart
     *
     * This template can be overridden by copying it to yourtheme/woocommerce/loop/add-to-cart.php.
     *
     * HOWEVER, on occasion WooCommerce will need to update template files and you
     * (the theme developer) will need to copy the new files to your theme to
     * maintain compatibility. We try to do this as little as possible, but it does
     * happen. When this occurs the version of the template file will be bumped and
     * the readme will list any important changes.
     *
     * @see 	    https://docs.woocommerce.com/document/template-structure/
     * @author 		WooThemes
     * @package 	WooCommerce/Templates
     * @version     2.5.0
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    }
    
    global $product;
    $quantity = 6;
    echo apply_filters( 'woocommerce_loop_add_to_cart_link',
    	sprintf( '<a rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s">%s</a>',
    		esc_url( $product->add_to_cart_url() ),
    		esc_attr( isset( $quantity ) ? $quantity : 1 ),
    		esc_attr( $product->id ),
    		esc_attr( $product->get_sku() ),
    		esc_attr( isset( $class ) ? $class : 'button' ),
    		esc_html( $product->add_to_cart_text() )
    	),
    $product );
    

    Regards

    #11384

    ciano
    Participant

    Hi,

    I ran to the letter the instructions but does not solve !

    Regards

    #11388

    Artem Temos
    Keymaster

    Did you add the code in the last post?

    #11394

    ciano
    Participant

    Hi,
    I need your answers are more precise,
    I do not understand this answer !

    Regards

    #11400

    Artem Temos
    Keymaster

    Hi,

    We are sorry for the misunderstanding. Last time we wrote you an instruction of how you can fix the issue. Did you apply the instruction?

    Create a file in your child theme woocommerce/loop/add-to-cart.php and add the following code there

    
    <?php
    /**
     * Loop Add to Cart
     *
     * This template can be overridden by copying it to yourtheme/woocommerce/loop/add-to-cart.php.
     *
     * HOWEVER, on occasion WooCommerce will need to update template files and you
     * (the theme developer) will need to copy the new files to your theme to
     * maintain compatibility. We try to do this as little as possible, but it does
     * happen. When this occurs the version of the template file will be bumped and
     * the readme will list any important changes.
     *
     * @see 	    https://docs.woocommerce.com/document/template-structure/
     * @author 		WooThemes
     * @package 	WooCommerce/Templates
     * @version     2.5.0
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    }
    
    global $product;
    $quantity = 6;
    echo apply_filters( 'woocommerce_loop_add_to_cart_link',
    	sprintf( '<a rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s">%s</a>',
    		esc_url( $product->add_to_cart_url() ),
    		esc_attr( isset( $quantity ) ? $quantity : 1 ),
    		esc_attr( $product->id ),
    		esc_attr( $product->get_sku() ),
    		esc_attr( isset( $class ) ? $class : 'button' ),
    		esc_html( $product->add_to_cart_text() )
    	),
    $product );

    Regards

    #11408

    ciano
    Participant

    Hi,

    YES, I ran see screenshot

    Attachments:
    You must be logged in to view attached files.
    #11410

    Artem Temos
    Keymaster

    OK, but it should work. Are you able to send us your FTP access so we can check it?

    #11411

    ciano
    Participant

    Hi,

    OK send to private content !

    one more thing

    in my WPML i have activate -> Widget language switcher,
    but in home page is not visible, it’ s possible see ?

Viewing 30 posts - 1 through 30 (of 110 total)