Your account expired support, please renew to get your support.

Home Forums Themes Support Claue Can you help us add some functions in the product page?

This topic contains 42 replies, has 2 voices, and was last updated by  Harry 1 week, 5 days ago.

Viewing 15 posts - 1 through 15 (of 43 total)
  • Author
    Posts
  • #33750
    iseewatch01
    Support Expired

    Dear Support:

    Good day,we want to add some functions in the product page?

    1,we want manual add order,and display the order quantity in product page.

    2,we want to manual add  reviews, include 5 stars feedback for each review.

    3,we want to add a message box above the add cart of the product page. When the customer is ready to purchase the product, they can leave a message, and after check out, we can see the customer’s message in the order.

    our email:iseewatch01@gmail.com

    Please help us solve the questions,we will apprecaite your help.

    #33751
    iseewatch01
    Support Expired

    what is BBcodes? we don’t have a professional website technician, we don’t know how to do?can you teach us?

    #33752
    iseewatch01
    Support Expired

    we try to add order quantity “total_sales:7” in the “custom fields”,but we can’t view the  order quantity  in the product page.

    women fashion GD flap bags chic crossbody shoulder bag chain belt

    Attachments:
    You must be logged in to view attached files.
    #33754
    iseewatch01
    Support Expired

    Can you log in to our webmaster account to help add these functions?

    #33756

    Hi,

    1. Please edit product and edit custom field to manual sold count and

    2. Follow this to add product rate and review https://www.blackhatworld.com/seo/how-to-make-fake-woocommerce-reviews.729057/

    3. By default it WooCommerce have field for customer put Order Note https://prnt.sc/p9ctk2 if you want add message box above “add to cart” i’m not sure user will purchase the product. Should use default function on checkout page.

    4. You don’t need to know this, it function of our support site.

    5. Please install claue-child.zip included in the package downloaded from ThemeForest via Appearance > theme > Add new

    and after that go to Appearance > Theme Editor and below code to claue-child > functions.php

    function claue_show_rating() {
        add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );
    }
    add_action('wp_head', 'claue_show_rating');
    
    // Show product sold count
    add_action( 'woocommerce_single_product_summary', ‘claue_product_sold_count', 11 );
    function  claue_product_sold_count() {
       global $product;
       $units_sold = $product->get_total_sales();
       if ( $units_sold ) echo '<p>' . sprintf( __( 'Sold: %s', ‘claue' ), $units_sold ) . '</p>';
    }

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #33762
    iseewatch01
    Support Expired
    This reply has been marked as private.
    #33765

    Hi,

    1,5 Please copy code on this topic, don’t copy code via email. All special character will not correct if you copy via email.

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #33766
    iseewatch01
    Support Expired

    i had copy the code via the link,but still error.help me

    Your PHP code changes were rolled back due to an error on line 27 of file wp-content/themes/claue/ functions.php. Please fix and try saving again.

    syntax error, unexpected ”, 11 );’ (T_CONSTANT_ENCAPSED_STRING), expecting ‘)’

    Attachments:
    You must be logged in to view attached files.
    #33768
    iseewatch01
    Support Expired

    Very strange, I added this code in the above box, it is successful, but I added the code to the box below, there will be an error, please refer to the screenshot.

    error:

    Your PHP code changes were rolled back due to an error on line 23 of file wp-content/themes/claue/functions.php. Please fix and try saving again.

    syntax error, unexpected ”, 11 );’ (T_CONSTANT_ENCAPSED_STRING), expecting ‘)’

    Attachments:
    You must be logged in to view attached files.
    #33773

    Do not add to claue > fucntions.php Please install claue-child.zip and add to claue-child > functions.php if you don’t want lose your code when have update.

    Please use new code

    function claue_show_rating() {
        add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );
    }
    add_action('wp_head', 'claue_show_rating');
    
    // Show product sold count
    add_action( 'woocommerce_single_product_summary', 'claue_product_sold_count', 21 );
    function  claue_product_sold_count() {
       global $product;
       $units_sold = $product->get_total_sales();
       if ( $units_sold ) echo '<p>' . sprintf( __( 'Sold: %s', 'claue' ), $units_sold ) . '</p>';
    
    }

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #33774
    iseewatch01
    Support Expired

    many thank.

    i had install claue-child.zip and add the code to claue-child > functions.php,it is successfully.and i also set total_sales : 7 in custom fields. but i can’t see order quantity in the product page. how should i to do? help

    women fashion GD flap bags chic crossbody shoulder bag chain belt

    Attachments:
    You must be logged in to view attached files.
    #33776
    iseewatch01
    Support Expired

    i can’t see the order quantity : 7 in the product page

    #33781

    Hi,

    I activate child theme and it problem with code in child theme.

    Could you give me FTP to fix?

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #33784
    iseewatch01
    Support Expired
    This reply has been marked as private.
    #33785

    Hi,

    I mean the account to login in to edit file. Do you have cpanel account?

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 15 posts - 1 through 15 (of 43 total)

You must be logged in to reply to this topic.