Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, I want to do the same thing, but don’t understand php. Does anyone have a solution?
    Thanks, Nel7

    Hey Lucas and Nel7,

    I’ve had the same problem and with a little modification you can solve it. In case you didn’t find a solution yet, here’s my solution.

    There are two options:
    1. replacing the ‘product details’ with the product title
    2. leave the ‘product details’ as it is and add the product title at the top of the single product page.

    First of all you have to open the ‘single-wpcproduct’ file, which is located in the folder ‘themefiles’ within the plugin folder. A very good text editor for this job is Notepad++, this editor makes reading the code a lot easier by adding colors to the divs, classes, id’s, etc.

    Now the two possible solutions:
    1. When you’ve opened the file, search for the line with ‘<h4>Product Details</h4>‘ on it. Now replace the text ‘Product Details’ with ‘<?php echo $pname; ?>‘. Save the file and refresh the page; you might see a ‘>>’ in front of the product title, which can be found in the code on line 19: “$pname = >> get_the_title();

    2. Search for the line with ‘<div class=”entry-content”>’ in it; just below this add the following code:
    <div id=”product-title” class=”grid col-940″>
    <h1><?php echo $pname; ?></h1>
    </div>

    and after saving the file again you’re all done.

    After all: PHP is not so hard to understand, until five weeks ago I didn’t know anything about it either ;). Happy learning!

    Greetings from The Netherlands,
    Gert-Jan

    Plugin Author Maeve Lander

    (@enigmaweb)

    Thank you for posting this Gert-Jan. Perfect solution. This will be integrated in next release.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Soley Product Name / Adjust Product Details’ is closed to new replies.