vankaa
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Custom Order IDChanging the ID is not possible. Save the new ID to the order meta and query the orders via the meta.
Forum: Plugins
In reply to: [WooCommerce] Shipping SettingsBy default downloadable/virtual products will not be shipped, so shipping will not be calculated.
Forum: Plugins
In reply to: [WooCommerce] Changing the cart titlesThe site is a theme demo? The string is in
templates/cart/cart.php, you can change it there or use the transations and change it through them.Forum: Plugins
In reply to: [WooCommerce] Disable options amount and final totalThere is no “options amount” and “final total” in WooCommerce, so please be a bit more specific
Forum: Plugins
In reply to: [WooCommerce] delete a product, a commandThis is because that page is the Checkout page not your Cart.
Forum: Plugins
In reply to: [WooCommerce] Custom Order IDYou can try using the
'woocommerce_order_number'filter and instead of changing the order ID, change the visual order number.Forum: Plugins
In reply to: [WooCommerce] Multiple cart on cart page separated by root product categoryJust loop through the items and group them together then output your cart tables:
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { // array( [group-name] => array( [cart_item_key] => [cart_item] ) ) $group_items[ sanitize_title( $cart_item['item_category_group'] ) ][ $cart_item_key ] = $cart_item; } // Then loop through each of the groups and output your cart tables foreach ( $group_items as $group_name => $group ) { // start your table foreach( $group as $gcart_key => $gcart_item ) { // out put your items } }Forum: Plugins
In reply to: [WooCommerce] Woocommerce Product Category in Order EmailsYou want a space between the name and the category add a space before the label
$name .= ' <label>' . $taxonomy->label . ': </label>' . implode( ', ', $terms );You want to show it under the title, you can either add
<br/>break before the label or add a class to the label and style it as a block element.Forum: Plugins
In reply to: [WooCommerce] WooCommerce Variable Product Bundles Stock ControlIt sounds like a job for the Product Bundles or Composite. Make each variable a separate product add them to the bundle and let the customer choose a bundle. If you have 1 wine and 2 glasses in the bundle as separate products, than 1 item will be deducted from the wine product and 2 items from the glasses product.
Am I missing something from the requirements?
- This reply was modified 8 years, 8 months ago by vankaa.
Forum: Plugins
In reply to: [WooCommerce] Multiple cart on cart page separated by root product categoryOn Add to cart you add your category group to the item data:
// On Add to cart add the item custom data add_filter( 'woocommerce_add_cart_item_data', 'prefix_add_cart_item_data' ); function prefix_add_cart_item_data( $cart_item_data, $product_id, $variation_id ) { // Add your logic to find the item category group. $category_group = "RAZ CHRISTMAS"; $cart_item_data['item_category_group'] = $category_group; return $cart_item_data; }Than in cart you have to split your items into their respective groups. For each cart you will replace the global totals with the totals of the respective group.
For checkout you can either remove the other groups from the cart and just checkout the one that was chosen or filter the order total and the items displayed on the checkout page.
As I said before, this is not something that you do in couple of hours. There are quite a few changes you will need to do.
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Coupons LimitCan’t reproduce the issue. Can you provide versions and steps to reproduce, please?
Forum: Plugins
In reply to: [WooCommerce] CSS issue with buttonsFirebug was replaced by the FF developer tools, just press F12 and you have it. The same thing you can use in Chrome.
.woocommerce-mini-cart__buttons a.button.wc-forward:hover { color: #fff; background: #DC0E0E; } #ttr_content_margin .woocommerce-message a.button.wc-forward { color: #fff; padding: 6px 12px; font-size: 16px; font-family: Arial; }Forum: Plugins
In reply to: [WooCommerce] how to pass the line_items parameter in orders rest api?Line items should be in
array(array(item1), array(item2))format:"line_items": [ { "product_id": 93, "quantity": 2 }, { "product_id": 22, "variation_id": 23, "quantity": 1 } ],If you are using the REST API SDK, than you should do something like:
$client = new Client( 'http://site.com', 'ck_caasd25nwq4j3425nsdfk3k59mfmvcdksgopwem5', 'cs_caasd25nwq4j3425nsdfk3k59mfmvcdksgopwem5' ); // You define the rest of the order arguments $order['line_items'] = array( array( 'product_id' => 93, 'quantity' => 2 ), array( 'product_id' => 22, 'variation_id' => 23, 'quantity' => 1 ), ); $results = $client->post( 'orders', $order );Forum: Plugins
In reply to: [WooCommerce] [REST API] variable product created without given attributesYou did define an attribute, but not its options. It is like telling WC, “I have t-shirts in attribute “color”, please create my variations”. The logical question is, what color? Even if you go to the admin, create a variable product then add attribute “color” without options, this attribute will not be saved.
Forum: Plugins
In reply to: [WooCommerce] Block Admin loginYes, theme\functions.php will do.