Hello,
in framework/woo.php you’ve got this code in line 1261: <?php echo $woocommerce->cart->get_item_data( $cart_item ); ?>
But it seams that this is deprecated since woocommerce 3.0.x, it doesnt show anything anymore. Any idea how to get the cart item data would be really appreciated.
Maybe I missunderstood the function. I thought that this function outputs the product variation (p.e. “Size: Medium”). I am searching for a solution to achieve this. Since Woocommerce version 3.0.X, the variation isnt shown seperately anymore, it’s always combined with the product name like so: “Shirt – Medium”. Royal did not implement this behavior at all so there is no variation shown because Royal uses “$_product->get_title()” while woocommerce uses “$_product->get_name()”. But anyway I would like to re-seperate the variation from the product name, give it a seperate class and style it different…
Where exactly you want to change it?
Try to change etheme_cart_items function.
We recommend to make changes in the child theme https://codex.wordpress.org/Child_Themes because you’ll lose all modifications after each theme update.
I’ll try to explain it more clearly:
In your demoshop, your running older versions of Royal theme and woocommerce. The cart with a variable product looks like in this screenshot: http://fs5.directupload.net/images/170505/yo7mcfm4.jpg
It shows the product name and the variation attributes (Color and Size).
In Woocommerce 3.0, this has been changed. Now, they use $_product->get_name() instead of $_product->get_title() (version 2.9.X) and the variation attributes are combined with the product name like “FASHION ACCESSORIES – Red, Small”. But in Royal theme, the variation attributes are not shown at all because it uses the deprecated $_product->get_title() – this shows only the product title and the variation attributes have disappeared.
My goal is to show the variation attributes again, but in the old style like on the screenshot above – not combined with the product name because I want to change their position and their look.
Do you know what I mean?
Unfortunately, it is not possible to show attributes in the old style, because it was changed by woocommerce, the same situation you can see with official WC theme – Storefront: title + variation.
Regards,
Rose Tyler.
Viewing 6 results
1 through 6 (of 6 total)
You must be logged in to reply to this topic.Log in/Sign up
Our mission is to help Internet businesses and their customers interact in a way that mirrors real-world customer experience: personal, human, and fun.
Upload your translation files
Lorem ipsum dolor sit amet consectetur adipisicing elitsed do
Love us as much as we love you?
If you love XStore theme and have something nice to say
don’t hesitate to tell about this! We’d appreciate if you could take a moment to give us 5-stars!