Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Estore – extra shortcode -product_search_with_add_to_cart_button & audio

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Estore – extra shortcode -product_search_with_add_to_cart_button & audio

Tagged: compact audio player

  • This topic has 7 replies, 2 voices, and was last updated 6 years, 5 months ago by Simie.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • December 17, 2018 at 10:39 pm #15245
    Simie
    Participant

    Hello.

    I have tried to add the compact audio player into the [wp_eStore_product_search_with_add_to_cart_button] shortcode unsuccessfully.

    Is there any way of modifying this extra shortcode to list the results to the Stylish Product Display 12 (Fancy 12) say? This would be very similar to the default listing result, but would add the compact audio button to this field on the one line.

    Please can you point point me to which php file i need to edit as i have looked at many and none seem to correspond. Or could i install the WordPress Custom CSS Plugin and alter the shortcode product search parameters somehow?

    WP 5.0

    thanks

    December 18, 2018 at 3:29 am #78927
    admin
    Keymaster

    okay I will be able to tell you which PHP files to update but first I need to know if you are a code. You would need to understand PHP coding to be able to make modifications. Otherwise it won’t work.

    December 18, 2018 at 1:57 pm #78928
    Simie
    Participant

    Thanks for the reply. That would very helpful. I have a basic/moderate understanding of php and have modified some php previously without any mishaps. Thanks

    December 19, 2018 at 1:20 am #78929
    admin
    Keymaster

    Look for the “print_eStore_add_to_cart_product_search_result” function in the “shortcode_include.php” file. That function outputs the search result so you can modify it there.

    December 19, 2018 at 8:43 pm #78930
    Simie
    Participant

    thanks very much. I will give that a go later and let you know how i got on.

    December 29, 2018 at 11:52 pm #78931
    Simie
    Participant

    Hello.

    I have not succeeded in adding the compact audio player into the [wp_eStore_product_search_with_add_to_cart_button] shortcode .

    I have tried various code around the the following lines.

    * = modified code.

    ( $output .= ‘<table>’;

    $output .= ‘<th></th>’;

    * $output .= ‘<th>’ . Play. ‘</th>’;

    $output .= ‘<th>’ . ESTORE_PRODUCT_NAME . ‘</th>’;

    $output .= ‘<th>’ . ESTORE_PRICE . ‘</th>’;

    $output .= ‘<th></th>’;

    if ($wp_eStore_db) {

    foreach ($wp_eStore_db as $wp_eStore_db) {

    if (empty($wp_eStore_db->thumbnail_url)) {

    $wp_eStore_db->thumbnail_url = WP_ESTORE_URL . ‘/images/no-image-specified.gif’;

    }

    $output .= ‘<tr>’;

    if (!empty($wp_eStore_db->product_url)) {

    $target_url = $wp_eStore_db->product_url;

    if (!empty($wp_eStore_db->target_thumb_url)) {

    $target_url = $wp_eStore_db->target_thumb_url;

    }

    $output .= ‘<td><img src=”‘ . $wp_eStore_db->thumbnail_url . ‘” class=”eStore_search_result_thumbnail”></td>’;

    $output .= ‘<td>product_url . ‘” target=”_blank”>’ . $wp_eStore_db->name . ‘</td>’;

    } else {

    if (!empty($wp_eStore_db->target_thumb_url)) {

    $output .= ‘<td>target_thumb_url . ‘” target=”_blank”><img src=”‘ . $wp_eStore_db->thumbnail_url . ‘” class=”eStore_search_result_thumbnail”></td>’;

    } else {

    $output .= ‘<td><img src=”‘ . $wp_eStore_db->thumbnail_url . ‘” class=”eStore_search_result_thumbnail”></td>’;

    }

    * $output .= ‘<td>’ . sc_embed_player_handler($player_args) . ‘</td>’;

    * //$audio_file_url = apply_filters(‘eStore_preview_audio_file_url’, $ret_product->product_download_url, $id=”);

    * //line below modified copy try to change product download url to product id to reference player $id?

    * $audio_file_url = apply_filters(‘eStore_preview_audio_file_url’, $ret_product->product_url, $id);

    * $player_args = array(‘fileurl’ => $audio_file_url);

    $output .= ‘<td>’ . $wp_eStore_db->name . ‘</td>’;

    }

    $output .= ‘<td>’ . print_digi_cart_payment_currency($wp_eStore_db->price, WP_ESTORE_CURRENCY_SYMBOL, “.”) . ‘</td>’;

    $output .= ‘<td>’ . get_button_code_for_element($wp_eStore_db) . ‘</td>’;

    $output .= ‘</tr>’; )

    I have added the $id & $args to the function :

    function print_eStore_add_to_cart_product_search_result($search_term, $search_category = ”, $category_id = ”, $id = ”, $args= array())

    The result is I have in red :

    “Compact Audio Player Error! You must enter the mp3 file URL via the “fileurl” parameter in this shortcode. Please check the documentation and correct the mistake.”

    The error message is instead of the player button.

    Please, if possible, can you advise what i should look to change (or add).

    If it’s not going to work, please can you say and will think on another solution.

    thanks.

    January 1, 2019 at 1:49 am #78932
    admin
    Keymaster

    The code you came up with likely has some errors. Troubleshooting coding errors is beyond the scope of this forum.

    If you use the following option, we should be able to help you:

    https://support.tipsandtricks-hq.com/need-custom-work-done

    January 1, 2019 at 7:54 pm #78933
    Simie
    Participant

    Thanks very much. I have sent you details for a request for custom work done.

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

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ