Home › Forums › WooCommerce Personalized Product Options Manager (PPOM) › Cart Edit Addon
- This topic has 12 replies, 3 voices, and was last updated 5 years, 7 months ago by Jane Brian.
-
AuthorPosts
-
August 30, 2018 at 6:34 am #9280Lievelabels.nlParticipant
I have purchased the cart edit addon, but It does not work. Wether I enable or disable the extra column, nothing shows. I need some assistance!
It worked the initial time, but after disabling the extra column, I could not get it to work again.
Can you also make it work with variations?
I do not want an extra button, I would like the product link to open with the selected variation and PPOM options.September 2, 2018 at 1:34 pm #9284nmediaKeymasterHi,
did you updated theme?
September 3, 2018 at 6:44 am #9289Lievelabels.nlParticipantSorry, what do mean, did you update the theme?
September 3, 2018 at 12:43 pm #9291nmediaKeymasterMeans, have you updated your theme? because some hooks are removed from your theme template for cart page.
September 3, 2018 at 12:51 pm #9293Lievelabels.nlParticipantI use AVADA…. please tell me what hooks to look for in the cart
I can also post it here if needed.September 3, 2018 at 1:19 pm #9294Lievelabels.nlParticipantAlso, ofcourse we updated to WooCommerce 3.4.5 this weekend… maybe there is an issue there?
September 3, 2018 at 1:53 pm #9295Lievelabels.nlParticipantok, I have been adding the PPOM options to the woocommerce->avada->cart template and now they seem to be visible again. So there seems to be an issue with the latest template file? Please check.
Also, I would like not to have an EDIT BUTTON, but the product name link to be like the button, including the selected variation of the product.
currently the name link is for example:
https://www.lievelabels.nl/product/speendoekje-olifant-met-naam-bedrukt-van-funnies/?attribute_olifant-kleur=Blauw
and below the EDIT button:
https://www.lievelabels.nl/product/speendoekje-olifant-met-naam-bedrukt-van-funnies/?id=25&radio_met_naam=Ja&naam_op_olifant=asdfasdf&lettertype%5B0%5D%5Blink%5D=https://www.lievelabels.nl/wp-content/uploads/2016/12/Arimo.jpg&lettertype%5B0%5D%5Bid%5D=22277&lettertype%5B0%5D%5Btitle%5D=Arimo&lettertype%5B0%5D%5Bprice%5D&lettertype%5B0%5D%5Burl%5D&tekstkleur=Wit&_cart_key=###Is this possible to change?
September 3, 2018 at 2:19 pm #9296nmediaKeymasterwell there is issue seem with first option name (radio). it is different in URL then it’s data_name defined in PPOM, if you click this edit link it will work:
September 3, 2018 at 2:33 pm #9297Lievelabels.nlParticipantYou are missing the point here…… the LINK doest not contain the selected variation
I changed this already in your function: function edit_button( $cart_item_key, $cart_item ) {
I replaced:
$ppom_edit_url = add_query_arg($query_args, get_permalink($product_id));
with:$_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); $product_id = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key ); $product_permalink = apply_filters( 'woocommerce_cart_item_permalink', $_product->is_visible() ? $_product->get_permalink( $cart_item ) : '', $cart_item, $cart_item_key ); //$ppom_edit_url = add_query_arg($query_args, get_permalink($product_id)); $ppom_edit_url = add_query_arg($query_args, $product_permalink);
Now the edit button has the full link including the variation. This works.
Now I do not want a BUTTON, but the product link to be like this… I will try and add it.September 3, 2018 at 2:51 pm #9298Lievelabels.nlParticipantok, I think I have what I want now, but I had to create a new function and the cart.php had to be changed in my Avada Theme.
Maybe if we help each other we can both benefit!I can send you the details of my changes and the bugs that I found. I would rather do it via email.
September 4, 2018 at 7:03 am #9301Lievelabels.nlParticipantI send you an email on sales, please check.
September 5, 2018 at 2:28 pm #9328nmediaKeymasterOk thanks.
April 28, 2019 at 4:04 pm #11919Jane BrianKeymasterHI
It has been a long while for this topic, so we are closing this. -
AuthorPosts
- The topic ‘Cart Edit Addon’ is closed to new replies.