Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1244979

    Good afternoon,

    Need your help to add the product reference below the price

    here

    #1245331

    Hey Nelson_Soares,

    Could you please give us a link to your website, we need more context to be able to help you.

    What kind of reference are you referring to?

    Best regards,
    Victoria

    #1245756

    Good Morning.

    The website link is as follows
    http://digitalweb.pt/pedefruta/fruta/

    The reference to which I refer is the Reference of the product that is inserted in each product.

    You can see that reference on this page under the add button

    #1245851

    Hi Nelson_Soares,

    https://share.getcloudapp.com/4gu9qYPn The block itself is a link, do you want an additional link?

    Best regards,
    Victoria

    #1245875

    Hello, I want to appear

    Name
    Price
    Reference

    let it be like this

    Banana
    € 0.10
    1 Un. ± 40 Gr.

    I intend to use the product reference field to say that a quantity of the product is equivalent to “X” grams

    #1247241

    Hi,

    Thank you for the inquiry.

    Is product reference a custom field? We could use the woocommerce_after_shop_loop_item_title hook in the functions.php file to insert additional content after the product price. The hook should look something like this.

    add_action('<a href='https://refer.wordpress.com/r/84/woocommerce/' target='_blank' rel="nofollow">woocommerce</a>_after_shop_loop_item_title', function() {
       // insert additional content here
       echo "something here";
    }, 15); 
    

    Best regards,
    Ismael

    #1247834

    Hi Ismael,

    That’s exactly it, but the information cannot be static, an information must come from each product, basically I have to say that 1 product is equivalent to “x” gr

    For that I was using the Reference field for each product.

    Can you help me? Thank you

    #1248371

    Hi Nelson_Soares,

    You will need to modify the code that renders that block.

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Victoria

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.