- Posts: 36
- Thank you received: 0
View adjustment... which file is what?
13 years 9 months ago #90457
by utillis
View adjustment... which file is what? was created by utillis
I'm trying to find the files I need to adjust for the frontend, however I can't find any documentation on what file is used to generate what part of which page. Is there any documentation available on this?
My current way to find the file to edit is mostly by trial and error or by searching the forum for someone asking for a similar change in which a moderator has answered. However that is very time intensive.
My current way to find the file to edit is mostly by trial and error or by searching the forum for someone asking for a similar change in which a moderator has answered. However that is very time intensive.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 9 months ago #90595
by Mohamed Thelji
Replied by Mohamed Thelji on topic View adjustment... which file is what?
Hi,
Hikashop users can do a lot of things so we can't write documentation for all use cases. Can you explain what your problem is, and which page do you want to edit ?
Thank you
.
Hikashop users can do a lot of things so we can't write documentation for all use cases. Can you explain what your problem is, and which page do you want to edit ?
Thank you
Please Log in or Create an account to join the conversation.
13 years 9 months ago #90735
by utillis
I was hoping for a list of the defaults somewhere hidden in the documentation.
Here are some of the first changes I want to make:
- separate css style on the price on the product detail page
- adjustment in view of the total and VAT in the cart
- add image title beneath the images on the product detail page
- different delete image in the mini cart
Replied by utillis on topic View adjustment... which file is what?
Here are some of the first changes I want to make:
- separate css style on the price on the product detail page
- adjustment in view of the total and VAT in the cart
- add image title beneath the images on the product detail page
- different delete image in the mini cart
Please Log in or Create an account to join the conversation.
13 years 9 months ago #90745
by Dafilla
Replied by Dafilla on topic View adjustment... which file is what?
For changing CSS of the front end go: Hikashop-Configuration-Display (or View or 3rd tab, I have Dutch language..)- Front end CSS-file. Then go ahead and edit.
Please Log in or Create an account to join the conversation.
13 years 9 months ago #90747
by utillis
Replied by utillis on topic View adjustment... which file is what?
That part I know...
The question is about the view file, which files I need to edit to apply a different style to parts in the page.
For example by editing the frontend CSS to change the product price style will change the price style in the cart, in the overview, in the mini cart...everywhere. I only want to change the price on the product detail page, so I need to apply a different CSS style/tag to that part of the product page in that particular view file.
The question is about the view file, which files I need to edit to apply a different style to parts in the page.
For example by editing the frontend CSS to change the product price style will change the price style in the cart, in the overview, in the mini cart...everywhere. I only want to change the price on the product detail page, so I need to apply a different CSS style/tag to that part of the product page in that particular view file.
Please Log in or Create an account to join the conversation.
13 years 9 months ago #90868
by Xavier
Replied by Xavier on topic View adjustment... which file is what?
Hi,
For the layout there is some documentation here:
www.hikashop.com/fr/support/documentation/faq.html#layout
Or a start of a tutorial:
www.hikashop.com/fr/support/documentatio...ustomize-layout.html
For the layout there is some documentation here:
www.hikashop.com/fr/support/documentation/faq.html#layout
Or a start of a tutorial:
www.hikashop.com/fr/support/documentatio...ustomize-layout.html
Please Log in or Create an account to join the conversation.
13 years 9 months ago #90881
by utillis
Replied by utillis on topic View adjustment... which file is what?
Thanks, I know about what is documented/published.
I guess somehow I'm unable to explain what I'm looking for because it is not in the documentation.
I guess somehow I'm unable to explain what I'm looking for because it is not in the documentation.
Please Log in or Create an account to join the conversation.
13 years 9 months ago #90908
by utillis
Replied by utillis on topic View adjustment... which file is what?
After some searching in the files I found the product price on the detailed product page is compiled in the product/tmpl/listing_price.php view.
However I'm unable to change the code so that the price is larger or uses a different class from the CSS (only product_price, not product_price_full)
However I'm unable to change the code so that the price is larger or uses a different class from the CSS (only product_price, not product_price_full)
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 9 months ago #90909
by Mohamed Thelji
Replied by Mohamed Thelji on topic View adjustment... which file is what?
Hi,
1. Why don't you edit it directly through your front-end CSS file without changing the class name ?
2. What do you exactly want to do ?
1. Why don't you edit it directly through your front-end CSS file without changing the class name ?
2. What do you exactly want to do ?
Please Log in or Create an account to join the conversation.
13 years 9 months ago #90912
by utillis
Replied by utillis on topic View adjustment... which file is what?
1. Why don't you edit it directly through your front-end CSS file without changing the class name ?
> If I change hikashop_product_price in the front-end CSS it will change the product price on all Hikashop pages which display a product price (multiple times in the checkout/cart, category overview, minicart and many many more pages.
2. What do you exactly want to do ?
> I only want to change the price view (currency + numbers, not the JText:UNIT_PRICE part) on the detailed product page ( demo.hikashop.com/index.php?option=com_h...ow&Itemid=71&lang=en )
So I guess I have two options:
a) create a different CSS style in the frontend-css file and somehow try to apply it to the correct part in listing_price.php
b) try to add some style adjustment in the corresponding <span> tag in listing_price.php
> If I change hikashop_product_price in the front-end CSS it will change the product price on all Hikashop pages which display a product price (multiple times in the checkout/cart, category overview, minicart and many many more pages.
2. What do you exactly want to do ?
> I only want to change the price view (currency + numbers, not the JText:UNIT_PRICE part) on the detailed product page ( demo.hikashop.com/index.php?option=com_h...ow&Itemid=71&lang=en )
So I guess I have two options:
a) create a different CSS style in the frontend-css file and somehow try to apply it to the correct part in listing_price.php
b) try to add some style adjustment in the corresponding <span> tag in listing_price.php
Please Log in or Create an account to join the conversation.
13 years 9 months ago #90939
by Eliot
Replied by Eliot on topic View adjustment... which file is what?
Hi there,
What you have to do is edit the listing_price view through the Hikashop view editor (Display>Views) and edit this line:
You should be able to add some css directly or add a specific class
What you have to do is edit the listing_price view through the Hikashop view editor (Display>Views) and edit this line:
Code:
echo '<span class="'.implode(' ',$classes).'">';
Please Log in or Create an account to join the conversation.
13 years 9 months ago #90940
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic View adjustment... which file is what?
Hi,
In CSS, you can have specific rules depending on parents.
That why HikaShop have a lot of classes and ids, so you can create a specific rule for one module or one page.
An example with your demo website:
Which create a rule just for the module cart in the website.
Regards,
In CSS, you can have specific rules depending on parents.
That why HikaShop have a lot of classes and ids, so you can create a specific rule for one module or one page.
An example with your demo website:
Code:
.moduletable-cart .hikashop_product_price {
color: #FFF;
margin-left: 5px;
}
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.094 seconds