Template modification

  • Posts: 8
  • Thank you received: 0
13 years 1 week ago #30286

Hi again,

Here's a little question:

I want to modify a template slightly, namely wrap hikashop_product_left_part and hikashop_product_right_part divs in another div for some additional CSS styling.

Which php file do I have to tinker with?

On a different subject, three more quick questions:
1. Is it possible to add a quantity box to the category view?
2. Am I correct to assume, that to determine shipping by quantity one has to assign same weight to all the products and work from there?
3. Is there a way to restrict total order to a minimum of 6 items?

Last edit: 13 years 1 week ago by ZatriX.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 1 week ago #30336

Hi,

0. You should edit the file "show" of the view "product" via the menu Display->Views to do that.

1. Yes, like that : www.hikashop.com/fr/support/forum/4-how-...product-listing.html

2. Yes

3. Yes. In the configuration, there is the option "Maximum number of items in the cart" that you can use for that. You could also use shipping methods for that: no shipping methods for a weight greater than 6kg if all your products weight 1kg.

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

  • Posts: 8
  • Thank you received: 0
13 years 1 week ago #30353

Great, thanks!

0. Worked like a charm
1. Yip. Had to mod a different file (product/listing_img_desc.php), but figured that out :)
2. Ok
3. Emm, no. What I meant was: The customer can order any number of products, but no less then 6. It woud be nice also if I was able to restrict a customer to order only multiples of 6 (6,12,18,etc), however I don't see how that can be done without some major fiddling.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 1 week ago #30382

3. Well, you can use shipping methods for that. Suppose that all your products weight 1kg.
You could create manual shipping methods like that:

from 5.5kg to 6.5kg => shipping method 1
from 11.5kg to 12.5kg => shipping method 2
from 17.5kg to 18.5kg => shipping method 3

If the cart weight won't match one of the shipping methods, an error message will be displayed and the user won't be able to finish the checkout.

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

  • Posts: 8
  • Thank you received: 0
13 years 5 days ago #30771

Nicolas, thanks, the whole thing works now. Another question popped up, though:

I'm trying to modify the CSS for the bank transfer payment details to make it look like the rest of the shop.

I've added a class .hikashop_banktransfer_end to the CSS file and modified it according to my needs, namely

.hikashop_banktransfer_end {
        width: 700px;
        height: 300px;
        background-color: #000;
        border: 1px solid;
        border-radius: 5px;
}

but it doesn't seem to pick it up in the front end. Any ideas?

Also, where does one modify the error message that pops up due to shipping method error?

Last edit: 13 years 5 days ago by ZatriX.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 5 days ago #30782

That CSS sounds fine so it must be a problem with the way you added it.

For the error message, you can edit it like that:
www.hikashop.com/en/download/languages.html#modify

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

  • Posts: 8
  • Thank you received: 0
13 years 5 days ago #30787

Thanks again, your support is the best I've seen with any component!

The problem with the CSS somehow sorted itself out, the other one works perfectly.

BTW, the exact quantities was solved by putting in shipping with exact weight matches, i.e. min=6kg, max-6kg, etc.

Soo much easier and user-friendly then virtuemart ))

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

Time to create page: 0.065 seconds
Powered by Kunena Forum