Home › Forums › Basel support forum › wine shop send product 6 bottles
wine shop send product 6 bottles
- This topic has 109 replies, 3 voices, and was last updated 6 years, 10 months ago by Artem Temos.
-
AuthorPosts
-
March 26, 2017 at 7:22 am #11288
cianoParticipantGoodmorning,
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 !
RegardsMarch 26, 2017 at 9:36 am #11295
Artem TemosKeymasterHello,
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 StudioMarch 26, 2017 at 1:40 pm #11306
cianoParticipantHello,
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
cianoMarch 26, 2017 at 2:24 pm #11309
Artem TemosKeymasterCould you please send us your website link so we can see it?
March 26, 2017 at 2:47 pm #11313
cianoParticipantHello,
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-smeraldabut
in this page http://www.montespada.it/_index.php/?post_type=product
shopping cart side and the quick view the quantity ‘remain at 1Thank you
March 26, 2017 at 4:50 pm #11324
Artem TemosKeymasterCould you please attach screenshots also?
Thank you in advance
March 26, 2017 at 5:00 pm #11329
cianoParticipantMarch 26, 2017 at 5:01 pm #11331March 26, 2017 at 6:03 pm #11335
Artem TemosKeymasterTry 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
March 26, 2017 at 7:49 pm #11337
cianoParticipantHello,
thank you, works only for the quick view,
for the “add to cart” and ‘as before, reason?Regards
March 27, 2017 at 5:59 am #11341
Artem TemosKeymasterHi,
What do you mean by “for the add to cart and as before”?
March 27, 2017 at 6:21 am #11345
cianoParticipanthello
screenshot1 as the quantity in the side menu after click on add to cart marks 1x
regardsMarch 27, 2017 at 6:23 am #11346
Artem TemosKeymasterBut 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.
March 27, 2017 at 9:43 am #11348
cianoParticipantHello,
the problem occurs in the sidebar “shopping cart” as shown in the screenshot attached!
Do not It appears the quantity 6x but 1xRegards
Attachments:
You must be logged in to view attached files.March 27, 2017 at 11:35 am #11352
Artem TemosKeymasterHi,
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.
March 27, 2017 at 12:47 pm #11357
cianoParticipantHello,
… 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
March 27, 2017 at 2:23 pm #11359
Artem TemosKeymasterHi,
We mean just open your cart page and clear it. We don’t ask you to make any changes in PHP.
March 27, 2017 at 3:22 pm #11362
cianoParticipantHi,
I do not understand this! my cart page has only the cart pink element,
What you take away?March 27, 2017 at 5:50 pm #11366
Artem TemosKeymasterProbably, 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
March 27, 2017 at 6:14 pm #11369
cianoParticipantHi,
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.March 27, 2017 at 7:02 pm #11371
Artem TemosKeymasterNow 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
March 27, 2017 at 9:57 pm #11375
cianoParticipantHi,
I’m sorry, but the problem is not resolved, help my !
RegardsMarch 28, 2017 at 5:58 am #11379
Artem TemosKeymasterHi,
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
March 28, 2017 at 7:04 am #11384
cianoParticipantHi,
I ran to the letter the instructions but does not solve !
Regards
March 28, 2017 at 7:15 am #11388
Artem TemosKeymasterDid you add the code in the last post?
March 28, 2017 at 8:37 am #11394
cianoParticipantHi,
I need your answers are more precise,
I do not understand this answer !Regards
March 28, 2017 at 9:42 am #11400
Artem TemosKeymasterHi,
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
March 28, 2017 at 11:21 am #11408
cianoParticipantMarch 28, 2017 at 11:31 am #11410
Artem TemosKeymasterOK, but it should work. Are you able to send us your FTP access so we can check it?
March 28, 2017 at 12:09 pm #11411
cianoParticipantHi,
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 ? -
AuthorPosts
- You must be logged in to create new topics. Login / Register