-
AuthorPosts
-
May 7, 2015 at 1:41 pm #440908
Hello,
please could you help me. Iam trying to place the price on a sigle product page.
I try to use the advance editor buttons, try to use woocommerce shortcodes but as the result I have two buttons which apears.
Is there a possibility to solve the problem.May 7, 2015 at 9:44 pm #441263Hey tbp!
You could use our special heading element or just a textblock element and type out the price manually.
Cheers!
ElliottMay 8, 2015 at 7:49 am #441420Hi Elliott,
thanks for your answer.
but If I do this I have to change the price everytime if prices are changing and what about variations ?
I tried this and maybe this is a way that prices are effected by woocommerce changes ?
– I use this woocommerce shortcode to show up the add to card button with price [add_to_cart id=”99″] in a text field
– changend the id with my product id (find the product id by hovering over the product in product overview.)
– then I put this code in my style css:
.add_to_cart_button {
display:none;
}
.add_to_cart_inline {
border: 0px!important;
font-size: 18px;
font-weight: bold;
}May 9, 2015 at 4:48 am #441854Hi!
Yes, you can use the default shortcode but you have to change the style manually. Use the theme’s product purchase button shortcode then add the price manually using a text or code block. It’s not that difficult to change the price and the text block when it’s time to update the product.
Best regards,
IsmaelMay 9, 2015 at 4:54 am #441860Ismael !
I wish you did not close my inquiry.. so you are saying that I have to manually add the price in when adding the product price if using the enfold advanced editor?? will this mean manually updating the shopping cart settings and inventory? this doesn’t seem like a proper solution- This reply was modified 9 years, 7 months ago by nulrick.
May 12, 2015 at 7:31 am #442818Hi!
I don’t remember closing your inquiry. Yes, that’s exactly what I’m saying. Creating a product with the advance layout builder means that you have to start from scratch. And yes, it means that you have to update the inventory and price manually. Unfortunately, the product elements are not complete so you have to make use of what is available in the builder. If you think this is too much work for a single product, please use the default editor. I’m not so sure what you’re trying to say about “updating the shopping cart settings”.
Best regards,
IsmaelMay 12, 2015 at 2:12 pm #442999Just so Im clear , when using the advanced avia builder and adding the shop button, at this point it is not meant to include the price, correct? will this be fixed in the future? thanks
May 13, 2015 at 5:01 pm #443843Hi!
Correct. We may add some more product shortcodes in the future but for now you will need to type out the price manually by using a textblock or other similar element or just use the default editor when creating your product.
Regards,
ElliottJune 1, 2015 at 11:25 am #452472I have the same problem. When I enabled the avai layout editor and drag the product info element into the content, it shows nothing in the product info area in the front-end. If it can’t show anything, what is the “product info” element for?
I am okay to use the textbox to manually build the product page, however, I installed a product badge plugin which can show a badge of “Hot”, “New”, “Featured”, etc. It works in the product list page but it doesn’t show up in the product page when the avai layout editor is active. I want to get this thing back and I am thinking to manually add some custom code to the product page. Which php script should I modify? And how can I load the product data like product name, price, publish date, etc in the script??
June 2, 2015 at 6:05 pm #453277Hey!
That is going to take a lot of time and code and would have to be considered custom work. It would be best to hire a freelancer to help you out with creating a custom product template to use.
But to answer your question the PHP file that is used to display the single product view is in /wp-content/plugins/woocommerce/templates/single-product.php.
Best regards,
ElliottJune 3, 2015 at 4:02 am #453538I tried to modify the single-product.php. But I can only see the modified content when I disabled the avia layout editor. What script should I modify if I enabled the layout editor? And how can I get the product data on that script?
Also, for the product info element in the enfold editor, why there is nothing to show on the frontend? is this a bug? Is it possible for me to update the script file of this element or where is this script file?
- This reply was modified 9 years, 6 months ago by boscotwcheung.
June 3, 2015 at 4:29 am #453552I found you can update the script “enfold/config-templatebuilder/avia-shortcodes/product_snippet_info.php” to get back the price for the product in the product info element
function shortcode_handler($atts, $content = "", $shortcodename = "", $meta = "") { $output = ""; $meta['el_class']; global $woocommerce, $product; if(!is_object($woocommerce) || !is_object($woocommerce->query) || empty($product)) return; // $product = wc_get_product(); $output .= "<div class='av-woo-product-info ".$meta['el_class']."'>"; ob_start(); $product->list_attributes(); $output .= ob_get_clean(); echo 'Price: '.$product->regular_price; $output .= "</div>"; return $output; }
June 3, 2015 at 2:55 pm #453805Hi!
You can modify the template-builder.php. This is the file responsible for the advance layout builder. You can use conditional functions so that your modifications will only affect the product pages. Please contact codeable for further modifications: http://kriesi.at/contact/customization
Cheers!
IsmaelJune 6, 2015 at 9:59 pm #455534as you released the latest update, did you done anything for showing the price while using the advance layout builder? because it feels really difficult to enter the price manually each time and also the change of price or the offers are bot able to display as it shows in the grid display.
June 8, 2015 at 4:39 pm #456182Hi!
No we do not have any shortcodes added for that yet. If you want the price to be displayed automatically then you will need to use the default editor instead of the layout builder.
You can create some feature requests here, https://kriesi.at/support/enfold-feature-requests/, for additional product shortcodes and we may see something get added in a future update.
Regards,
Elliott- This reply was modified 9 years, 6 months ago by Elliott.
September 7, 2015 at 4:03 pm #499320Hello,
I installed the Enfold template and the WooCommerce plugin on my test server (latest version) and imported the shop demo content.
The product “Red Velvet” in your demo, which was created by you using the Advanced Layout Editor and in which you used the Product Purchase button, is displayed correctly inklusive the price information.
Accordingly, I created a test product named TEST and I also used the Product Purchase Button. But in this case the price is not shown.
Am I doing something wrong or what is the reason for that?Best rgards and thanks in advance
MaxSeptember 8, 2015 at 5:33 am #499656 -
AuthorPosts
- The topic ‘WooCommerce product price on single page not showing with advanced editor’ is closed to new replies.