Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #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.

    #441263

    Hey tbp!

    You could use our special heading element or just a textblock element and type out the price manually.

    Cheers!
    Elliott

    #441420

    Hi 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;
    }

    #441854

    Hi!

    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,
    Ismael

    #441860

    Ismael !
    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, 6 months ago by nulrick.
    #442818

    Hi!

    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,
    Ismael

    #442999

    Just 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

    #443843

    Hi!

    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,
    Elliott

    #452472

    I 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??

    #453277

    Hey!

    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,
    Elliott

    #453538

    I 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, 5 months ago by boscotwcheung.
    #453552

    I 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;
    		}
    
    
    #453805

    Hi!

    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!
    Ismael

    #455534

    as 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.

    #456182

    Hi!

    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, 5 months ago by Elliott.
    #499320

    Hello,
    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
    Max

    #499656

    Hey!

    You need to add the price manually by adding a text or a code block as stated on the previous posts. Please create another thread. We will close this one for now.

    Best regards,
    Ismael

Viewing 17 posts - 1 through 17 (of 17 total)
  • The topic ‘WooCommerce product price on single page not showing with advanced editor’ is closed to new replies.