Make Content Module carousel RTL

  • Posts: 129
  • Thank you received: 0
7 years 7 months ago #267875

-- HikaShop version -- : 3.0.1

hi,
i want to make Content Module carousel right to left.
i know i have to change something in product > carousel.php i''ve tried somethings like changing margin-left to margin-right in line : 613
and setting float: right to li s
but i still got some bugs.
i think i just need to i just need to change the value of margin-right in li style.

i was wondering if any of HikaShop Good Staffs or any of forum users have done such a thing and could give me a hint on how to do so.

i really appreciate any help.
Thanks.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
7 years 7 months ago #267895

Hi,

I don't think that it's possible with just CSS. I would have guessed that you would have had to change the javascript if you want to have the effect go the other way than what it is normally. Isn't that what you mean by RTL on the carousel ?

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

  • Posts: 129
  • Thank you received: 0
7 years 7 months ago #267900

hi nicolas ,
yes i want it to begin at the right and when scoll for next slide it get margin-right: -3000px to go to right side instead of left.
and style like that to become rtl.
do i have to change the product > carousel.php?
if so could you please tell me how ?

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
7 years 7 months ago #267920

Hello,

In order to change the carousel, yes you have to override the "product / carousel" view.
The current system is using "mootools" in order to create the effects and we have in our TODO list a task in order to entirely rewrite it using a jquery library.
If you want to learn more about the actual system in order to be able to modify it ; it is based on the "FX.morph" feature of mootools :
mootools.net/core/docs/1.6.0/Fx/Fx.Morph
Depending the transition mode, you can have different effects, with a one direction slider or like a "ping pong" slider..
I guess that your goal would be to find the most appropriate transition which will be a right to left one.

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