Edit product display page

jcrown41's picture
jcrown41
Wed, 03/16/2016 - 18:21
#1
Edit product display page

Hello,

I have some changes I want to make to the single products display page, but I could not find where to edit it from. 

I want to make very simple changes:
* Remove the smaller thumbnails
* Remove the description and Additional Info tabs
* Probably also remove manufaturer and colour displays.

Regards,

Joseph

phuonght's picture
phuonght
Thu, 03/17/2016 - 05:33

Hi,

1 - Remove the smaller thumbnails

Did you meant images as below?

Image title

Please open file template node--shop-product.tpl.php trong sites\all\themes\md_avendor\templates\node, delete code from line 156 to line 160

<div class="owl-carousel">
<?php foreach ($content['field_pictures']['#items'] as $value): ?>
<div class="item"><img alt="Product 1" src="<?php print file_create_url($value['uri'])?>"></div>
<?php endforeach; ?>
</div>

2 - Remove the description and Additional Info tabs:
at the same file, delete lines from 194 to 228

3 - Probably also remove manufaturer and colour displays.
at the same file, lines 178, 179 - delete

<li><strong><?php print t("Colors: ") ?></strong> <?php print $color_list; ?></li>
<li><strong><?php print t("Manufacturer: ") ?></strong> <?php print $manufacturer_list; ?></li>

then open file template.php (sites\all\themes\md_avendor), delete line from 57 to 71

jcrown41's picture
jcrown41
Thu, 03/17/2016 - 12:06

Thank you very much this is exactly what I was looking for.

Also for number 2, I would like to retain the "Review" Tab and just get rid of the other 2. How do I do that?
And lastly on the siingle blog page. I would like to changes the backdrop image (in grey), I couldn't find how to do this.

Image title

cindy's picture
cindy
Thu, 03/17/2016 - 23:23

Hi,

1. Please remove

<ul class="tabs-alt nav nav-tabs nav-justified"
<li class="active"><a href="#home5" data-toggle="tab"><?php print t("Description") ?></a></li>
<li><a href="#profile5" data-toggle="tab"><?php print t("Additional Information") ?></a></li>
<li><a href="#messages5" data-toggle="tab"><?php print t("Reviews") ?></a></li>
</ul>

and

<div class="tabs-alt tab-content">
<div class="tab-pane active"><?php print render($content['body'][0]['#markup']); ?>
</div>
<div class="tab-pane"><?php print render($content['field_additional_information'][0]['#markup']); ?>
</div>

and

<?php else: ?>
<ul class="tabs-alt nav nav-tabs nav-justified"><li class="active"><a href="#home5" data-toggle="tab"><?php print t("Description") ?></a></li>
<li><a href="#profile5" data-toggle="tab"><?php print t("Additional Information") ?></a></li>
</ul>

<div class="tabs-alt tab-content">
<div class="tab-pane active"
<?php print render($content['body'][0]['#markup']); ?>
</div>
<div class="tab-pane"
<?php print render($content['field_additional_information'][0]['#markup']); ?>
</div>
</div>
<?php endif; ?>

If you have any trouble, please send us your site url, admin account and FTP account, We will help you

2. Please go to theme setting admin/appearance/settings/md_avendor and change in tab page (see the documentation)

cindy's picture
cindy
Sun, 03/20/2016 - 22:46

Hi,

Just resume support service after the weekend. Thanks for your information but we need your site url as well as FTP host also 

cindy's picture
cindy
Mon, 03/21/2016 - 23:18

How about FTP host name, please

cindy's picture
cindy
Tue, 03/22/2016 - 22:47

Hi,

1.  remove the additional info and description tabs on the product display pages. (but leave the review tab) => Done

3. Search error: Please follow this instruction Http://Www.Nicklitten.Com/Blog/Notice-Undefined-Variable-Key-Commentpreparethread-Line-900-Commentmodule

 and then run cron

4. teaser: You can configure at

/admin/structure/types/manage/shop_product/display/teaser
However, if you config , you have to edit the code of file node--shop-product.tpl.php 

jcrown41's picture
jcrown41
Sun, 03/27/2016 - 09:00

I Just checked the site and the number 2 is working correctly. Thank you so much for your help. will definitely be leaving a 5 star rating

jcrown41's picture
jcrown41
Sun, 03/27/2016 - 14:56

Once again, thank you for your help.

Your support really came through for me.

jcrown41's picture
jcrown41
Sun, 03/27/2016 - 14:56

Once again, thank you for your help.

Your support really came through for me.

cindy's picture
cindy
Sun, 03/27/2016 - 22:32

You are welcome

Should you have any issue, feel free to contact us :)

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.