Change the sort by to something better for touch

  • csimmo
    Inactive member
  • Topic Author
  • Member
  • Member
More
11 years 4 months ago - 11 years 4 months ago #23558 by csimmo
Thank you for your help and patience. The bugs have been squashed and the site is purring like a kitten. Now I can try to kill a couple of annoyances.

1. I have been testing the my new site on touch devices. The big annoyances it that the sort by list is not very touch friendly. How would I go about changing it to a click drop down list that is selectable?

2. Ask a question popup, Manufacturer pop up and Product pop up (from inside one of my plugins). These items templates don't use the customized one. They default to the VM one. I got partly around it by copying the vmsite-ltr.css into the template folder and editing it, but its far from the way I want it. Can I create overrides for these? Which files do I need to override?

3. How would I change the product description to a popup instead of a new page?

Again, thanks for your support. This has been one hell of a learning curve!!
Last edit: 11 years 4 months ago by csimmo.

Please Log in to join the conversation.

More
11 years 4 months ago #23566 by ivan.milic
You want some advanced customizations.
Template overrides are made in this way for example :

components\com_virtuemart\views\category\tmpl\default.php

you copy to:

templates\hot_drug_store\html\com_virtuemart\category\default.php

and edit that file to override default. That is done by default on that template for that file.

so your first question:
templates\hot_drug_store\html\com_virtuemart\category\default.php

around line 166:
Code:
<div class="orderby-displaynumber"> <div class="width70 floatleft"> <?php echo $this->orderByList['orderby']; ?> <?php echo $this->orderByList['manufacturer']; ?> </div> <div class="width30 floatright display-number"><?php echo $this->vmPagination->getResultsCounter();?><br/><?php echo $this->vmPagination->getLimitBox(); ?></div> <div class="vm-pagination"> <?php echo $this->vmPagination->getPagesLinks(); ?> <span style="float:right"><?php echo $this->vmPagination->getPagesCounter(); ?></span> </div>

for second override :

components\com_virtuemart\views\askquestion\tmpl\form.php

for third you will also edit

templates\hot_drug_store\html\com_virtuemart\category\default.php

to ajax load details page on item click in modal dialog.

Please Log in to join the conversation.

Time to create page: 0.269 seconds
Powered by Kunena Forum