This topic has 12 replies, 3 voices, and was last updated 9 years, 9 months ago ago by Eva Kemp
Hello,
I have a serious issue, and it is going to effect anybody trying to make a more complex web shop.
I am selling rings, and all rings have variations such as sizes and material.
But anybody who has built a lot of ecommerce sites knows that the standard variations offered with woocommerce is not enough when offering customers the full shopping experience.
For instance, I offer my customers the possibility of engraving text in the rings. Also they can have their fingerprint engraved, so they need to be able to upload a picture.
The only way this is possible is through plugins such as “Product Add-Ons” or “Product Options”
The plugins work with other themes, but when activating Royal:
– The added prices do not add to the total price
– The added texts (i.e. for engraving) do not appear in the order for the customer or in the backend for the manager to see.
– Pictures uploaded by the customer does not get uploaded and can’t be seen by the website admin.
This is extremely frustrating since it is one of the main functionalities for my shop to work. And I would believe you will have more customers looking for this specific compatibility.
Have you encountered this from other customers and will you please make this a priority?
If so, when can we expect that the add-ons and options will work with your theme?
If a fix will not come within the next coming weeks, what workarounds do you suggest?
Hello,
Please ask the plugin author what hooks are used and we’ll try to implement it in our theme.
Thank you.
Regards,
Eva Kemp.
Hello Eva,
This is the answer I got from them.
“I’d be happy to help with that – to the extent possible.
I can’t point you or them to anything without digging a bit deeper. I see basically two options to get the information that I need.
1) Can you ask the theme developer if it would be o.k. to provide me with a current copy of the theme to me so I can find, exactly, where the incompatibility is – this is my preferred option as I don’t have to muck about with your site and potentially break things.
2) If option 1 won’t work can you provide an admin login and password for your site and also a direct link to a product where this problem is happening. This option has the least chance for success, but I can, at the very least, probably get some error messages that would be helpful to the theme developer.”
Can we do nr 1?
Thanks,
Emelie
Hello,
You can provide the copy of the theme yourself. You’ve already had theme package that you downloaded from our site.
Thank you.
Regards,
Eva Kemp.
Hi Eva,
I have given him a copy of the theme to check out and he will get back to me.
However, we are speaking to a few people on woothemes and another developer has responded with these hooks:
“The following hooks should be enough for what your theme author needs:
public function __construct() {
// Styles
add_action( ‘get_header’, array( $this, ‘styles’ ) );
add_action( ‘wc_quick_view_enqueue_scripts’, array( $this, ‘addon_scripts’ ) );
// Addon display
add_action( ‘woocommerce_before_add_to_cart_button’, array( $this, ‘display’ ), 10 );
add_action( ‘woocommerce-product-addons_end’, array( $this, ‘totals’ ), 10 );
// Change buttons/cart urls
add_filter( ‘add_to_cart_text’, array( $this, ‘add_to_cart_text’), 15 );
add_filter( ‘woocommerce_product_add_to_cart_text’, array( $this, ‘add_to_cart_text’), 15 );
add_filter( ‘woocommerce_add_to_cart_url’, array( $this, ‘add_to_cart_url’ ), 10, 1 );
add_filter( ‘woocommerce_product_add_to_cart_url’, array( $this, ‘add_to_cart_url’ ), 10, 1 );
// View order
add_filter( ‘woocommerce_order_item_display_meta_value’, array( $this, ‘fix_file_uploaded_display’ ) );
}
I will get back to you on what the other one says..
Thanks
Hello,
Ok, we’re looking forward to your reply.
Thank you.
Regards,
Eva Kemp.
Hi!
This is prop what your developers need for implementing and getting the Product Add ons and product options to work.
public function __construct() {
// Styles
add_action( ‘get_header’, array( $this, ‘styles’ ) );
add_action( ‘wc_quick_view_enqueue_scripts’, array( $this, ‘addon_scripts’ ) );
// Addon display
add_action( ‘woocommerce_before_add_to_cart_button’, array( $this, ‘display’ ), 10 );
add_action( ‘woocommerce-product-addons_end’, array( $this, ‘totals’ ), 10 );
// Change buttons/cart urls
add_filter( ‘add_to_cart_text’, array( $this, ‘add_to_cart_text’), 15 );
add_filter( ‘woocommerce_product_add_to_cart_text’, array( $this, ‘add_to_cart_text’), 15 );
add_filter( ‘woocommerce_add_to_cart_url’, array( $this, ‘add_to_cart_url’ ), 10, 1 );
add_filter( ‘woocommerce_product_add_to_cart_url’, array( $this, ‘add_to_cart_url’ ), 10, 1 );
// View order
add_filter( ‘woocommerce_order_item_display_meta_value’, array( $this, ‘fix_file_uploaded_display’ ) );
}
When can we expect this do be done?
Thanks
Hi again,
I have another answer regarding this issue.
I truly hope that you can update your code so that the theme will work properly..
“Here’s the root cause for the problems that you are seeing. The function et_woocommerce_add_to_cart located in framework/woo.php on line 1350 is throwing a fatal error.
Within that function – on line 1381 there is a call to $woocommerce->set_messages(); which would indicate that the theme wants to call the set_messages method of some object. In that case, the variable $woocommerce is undefined (it should be an object) – I would assume that the intention is that they want to use the global $woocommerce object there, but that class/object has no method called set_messages so that makes it very much unclear what the intention really is, nor can I find a function or method called set_messages anywhere in the royal theme.
Complete removal of that function results in a successful add to cart operation.”
Hello,
Try to disable Ajax Add to Cart in Theme Options > Single Product Page > Ajax “Add To Cart” > Off and check if it fix your problem.
Regards,
Olga Barlow
Hello,
It has been disabled all the time so that is not the problem.
I have already written the solution to this above that I have gotten from the Woothemes developers
Will your development team fix this issue? Please read the solutions that I have provided on the 13th of feb and the 16th of feb
We can not live our clients e-shop as the product options won’t work:
– The added prices do not add to the total price
– The added texts (i.e. for engraving) do not appear in the order for the customer or in the backend for the manager to see.
– Pictures uploaded by the customer does not get uploaded and can’t be seen by the website admin.
Thanks
I have found a solution to this problem..
So now it works.
Hello,
We’re glad you managed to fix the issue.
Enjoy your work.
Regards,
Eva Kemp.
The issue related to '‘Product Add-Ons and Product Options not supported by Royal theme’' has been successfully resolved, and the topic is now closed for further responses