Juls Terobias
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] add_to_cart with attribute issueHello,
instead of the code above, I placed the custom variations in fourth parameter. I did this:
$res = $cart->add_to_cart(
$product_id,
$value->qty,
$variation_id,
array(),
array(
‘my_index_’ => array(
‘Freebies’ => $value->freeproduct,
‘Quantity’ => $value->qty,
‘Country’ => $country
)
)
);Note: This will not fix the issue, will just help you to display and to have custom variations easily. The variations you set in the admin are still there and will show in the cart, you have to call another filter to hide them and you have to call another filter to show your custom variations. Be very careful might affect all products so be sure in the filter check what’s inside the cart first before applying the hack.
- This reply was modified 5 years, 5 months ago by Juls Terobias.
Forum: Plugins
In reply to: [WooCommerce] add_to_cart with attribute issuePlease ignore, This is resolved.
Forum: Plugins
In reply to: [301 Redirects - Redirect Manager] WP admin side: Empty DropdownsMy bad! the dropdown is now populated. Not sure what’s going on after I log again it is working now. Thank you for the response really appreciate it.
Forum: Plugins
In reply to: [301 Redirects - Redirect Manager] WP admin side: Empty DropdownsHi,
It is populated.