ghost code in show_block_product_files view?

  • Posts: 79
  • Thank you received: 3
9 years 6 months ago #219292

-- HikaShop version -- : Business: 2.6.0
-- Joomla version -- : 3.2.3
-- PHP version -- : 5.3.3

Hello, I can't find logical answer to some product display behaviour.

I have a book store and I sell ebooks in some formats. I have defined a characteristic with 3 ebooks formats (pdf, epub and mobipocket).

Well I have personalized "show_block_product_files" view in order to show my download files in my own styles (I inserted some flags in order to check If I edited the proper view).
In catalog, when I click in ebook to display product description, I obtain the correct view (see ghost_code_001.jpg). You can see the page code generated in ghost_code_002.jpg with my flags in red, blue, green and pink rectangles.

When I change the ebook variant clicking in its corresponding radio button (ghost_code_003.jpg), then some "ghost code" appear replacing the original one, but my personalized "show_block_product_files" view is still loaded because 2 of my flags are still there as you can see in ghost_code_004.jpg, but red and pink flags was disapeared.

From where this code is loaded? because if it had loaded another view, all my flags have disappeared not only two of them.
I am astonished. What happend?, some one can explained me what is happening?.

Thanks in advance.

P.D. I attached my show_block_product_files view code

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

  • Posts: 26226
  • Thank you received: 4035
  • MODERATOR
9 years 6 months ago #219295

Hi,

When you're using variants, the product page content can be modified dynamically by some javascript depending the selected variant.
The content is generated in the view "product / show" ; it generates some DIV depending what the variant can override (description, price, files, etc).

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.

  • Posts: 79
  • Thank you received: 3
9 years 5 months ago #219356

Thanks Jerome!.
Only I was looking in "show_default" view and I didn't see "show" view.
I applied same changes in "show" view and it works.

Any way, why don't you draw block "download files" calling the proper view, like you do with others blocks like image block or price block, for example:

	$this->setLayout('show_block_product_files');
	echo $this->loadTemplate();

I think this will prevent duplicate code and avoid this kind of problem.

Thank you very much.

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

  • Posts: 26226
  • Thank you received: 4035
  • MODERATOR
9 years 5 months ago #219362

Hi,

Thanks for your feedback.
Yes, the view "show" does not use (yet) views that we added for the "show_default".
We are currently making some important modification in the views for HikaShop 3 ; I hope that the "show" view will refresh during that process.

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.056 seconds
Powered by Kunena Forum