Skip to main content

Change Product Preview ?

More
13 years 10 months ago #76312 by ido.san
Hello everyone
I'm trying to change the view of presenting a product, for example:
I want the product will be displayed before entering it only with a headline, picture, and description, without the price and item code etc..
I of course Vanish general settings and there are several options but none of them corresponds to what I mentioned above. In addition to that I choose something from the drop down general settings and change it and keeps nothing changes ...
What am I missing? How do I make what i described above?

link wwww.marry-me-love.com/noni

Thanks to all...

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #76430 by Xavier
Replied by Xavier on topic Change Product Preview ?
Hi,

To change the product display, you can edit the view "product / show_default" and move the divs as you want to change the display of the product page.

One reason why the previous changes were not displayed could be a cache issue. Try to clear the cache, or do a Ctrl + F5

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #76483 by ido.san
Replied by ido.san on topic Change Product Preview ?
i tried to clean cache but steel not changing...
what could it be?

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #76504 by ido.san
Replied by ido.san on topic Change Product Preview ?
any idea? i use ctrl+f5 But still the product privew not changing

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #76560 by Jerome
Replied by Jerome on topic Change Product Preview ?
Hi,

If you edit a view and you do not see any modification, just check that you're editing the view for the right template.
I made this mistake a lot of time !

If you want to be sure that you're editing the right view (file), just put a
Code:
<?php die('ok'); ?>
at the beginning of the view. If you got a blank page with "ok", it's good.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #76574 by ido.san
Replied by ido.san on topic Change Product Preview ?
hii thank u for your time...
I am thinking we miss each other.
I'm trying to change the display settings through the preliminary product overall management system, there is the possibility of choosing such a picture and description, just viewing an image, an image and a title, etc ... So I want to just change out and choose option saves and it's just a variable. I want to display the product preview when you see a picture and description product theory.
Crouched there is no connection to the php file editing
Hope you understand me?

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #76699 by Xavier
Replied by Xavier on topic Change Product Preview ?
Hi,

You are talking about the products listing.
To change the style of display, you have to edit your content menu or content module in HikaShop > Display > Content menus / modules.

Hope I understood you, and this will help you.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #76782 by ido.san
Replied by ido.san on topic Change Product Preview ?
hii i add a picture of what i am talking about ...
i need to display the divs of the introduction product just with picture title and short description....

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #76888 by Xavier
Replied by Xavier on topic Change Product Preview ?
Hi,

You have to set the view configuration to "div" and "image and description" in your content menu/module edition view.
Then edit the view "product / listing_img_desc" and add code like: "echo $this->row->product_name;"

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #76897 by ido.san
Replied by ido.san on topic Change Product Preview ?
i dont know were po put the code in the file...
and i changed in the configuration to div and to pic+description but again it showing the code and the price ...
whitaout php coding it is not posibole?

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #76902 by Xavier
Replied by Xavier on topic Change Product Preview ?
No it require just some modifications in the file.

To hide the code and the price, remove the blocks:
Code:
<!-- PRODUCT PRICE --> <?php } if($this->params->get('show_price','-1')=='-1'){ $config =& hikashop_config(); $this->params->set('show_price',$config->get('show_price')); } if($this->params->get('show_price')){ $this->setLayout('listing_price'); echo $this->loadTemplate(); } ?> <!-- EO PRODUCT PRICE -->
And
Code:
<!-- PRODUCT CODE --> <span class='hikashop_product_code_list'> <?php if ($this->config->get('show_code')) { ?> <a href="<?php echo $link;?>"> <?php echo $this->row->product_code; ?> </a> <?php } ?> </span> <!-- EO PRODUCT CODE -->

The blocks are indicated by tags, you just have to move or remove these blocks to have what you need.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #76921 by ido.san
Replied by ido.san on topic Change Product Preview ?
ok i understand now...
last thing , how can i take just 5 6 word from the discription... ? it takes all the discription

thanks for your time!! :-)

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #76928 by Xavier
Replied by Xavier on topic Change Product Preview ?
There is a php function for that, substr(), you can find some documentation on the php.net website:
php.net/substr

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #77045 by ido.san
Replied by ido.san on topic Change Product Preview ?
try to undertand it but i don't know php so cant do it.. but thank u

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago - 13 years 10 months ago #77050 by Xavier
Replied by Xavier on topic Change Product Preview ?
Try to replace the line "echo $this->row->product_description;" by:
Code:
echo substr($this->row->product_description,0,20);
Last edit: 13 years 10 months ago by Xavier.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #77128 by ido.san
Replied by ido.san on topic Change Product Preview ?
im sorry but

i have puted this code :


<!-- PRODUCT DESCRIPTION -->

<div class="hikashop_product_desc" style="text-align:<?php echo $this->align; ?>">

<?php

echo substr ($this->row->product_description,0,20);

?>

</div>

<!-- EO PRODUCT DESCRIPTION -->

but this what i got in the pic that added

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #77175 by Jerome
Replied by Jerome on topic Change Product Preview ?
Hi,

I tried to access to your website in order to see your problem but I can't see your modification.
Did you removed the modification ?
(Your domain with "www" does not exists but marry-me-love.com does, You may need to create a DNS entry for "www")

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #77237 by ido.san
Replied by ido.san on topic Change Product Preview ?
Hi

for some reason the file which is also estimated when editing the file is:
listing_img_title.php
I added the code I sent the previous post after the image area.
And now there's a bug in the display ..and one from tow product do not get the shor discription.
And seems only one product get short description ...

marry-me-love.com/noni

and i can open a user account login for you if you want for the specific folder? and send you the login detailes on privete?

thank u !!! :-)

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #77261 by ido.san
Replied by ido.san on topic Change Product Preview ?
help?... :dry:

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #77267 by Jerome
Replied by Jerome on topic Change Product Preview ?
Hi,

Your page have some broken HTML, that's why the layout is strange.
When you display the 20 first characters of the description, you have to keep in mind that the description could contains HTML.
Code:
<!-- PRODUCT DESCRIPTION --> <div class="hikashop_product_desc" style="text-align:center"> <p style="text-align </div> <!-- EO PRODUCT DESCRIPTION -->

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.307 seconds
Powered by Kunena Forum