- Posts: 4
- Thank you received: 0
You can talk here in German about HikaShop. Please understand that we do not speak German at HikaShop and we can't offer support in German.
Automatisierung der Gewichte
14 years 8 months ago #41646
by darksum
Automatisierung der Gewichte was created by darksum
Hallo,
gibt es eine Möglichkeit das Gewicht automatisch auf 1.000 zu setzen? Ich habe die 'common.php' bearbeitet, jedoch ohne Erfolg.
Die betroffene Line müsste folgende sein:
<input type="text" name="data[product][product_weight]" value="0.000">
Hoffe ihr könnt mir helfen.
Gruß
darksum
Hi,
is there an opportunity to set automatically the weight to 1.000? I edited the file 'common.php', but without any successfully result.
The affected line must be this one:
<input type="text" name="data[product][product_weight]" value="0.000">
Regards
darksum
gibt es eine Möglichkeit das Gewicht automatisch auf 1.000 zu setzen? Ich habe die 'common.php' bearbeitet, jedoch ohne Erfolg.
Die betroffene Line müsste folgende sein:
<input type="text" name="data[product][product_weight]" value="0.000">
Hoffe ihr könnt mir helfen.
Gruß
darksum
Hi,
is there an opportunity to set automatically the weight to 1.000? I edited the file 'common.php', but without any successfully result.
The affected line must be this one:
<input type="text" name="data[product][product_weight]" value="0.000">
Regards
darksum
Please Log in or Create an account to join the conversation.
14 years 8 months ago #41818
by nicolas
Replied by nicolas on topic Re: Automatisierung der Gewichte
Edit the file "common" of the view "product" via the menu Display->Views.
Before the line:
add the line:
Before the line:
Code:
<input type="text" name="data[product][product_weight]" value="<?php echo @$this->element->product_weight; ?>"/><?php echo $this->weight->display('data[product][product_weight_unit]',@$this->element->product_weight_unit); ?>
add the line:
Code:
<?php if(!isset($this->element->product_weight_unit)) $this->element->product_weight_unit=1.000; ?>
Please Log in or Create an account to join the conversation.
14 years 8 months ago #41822
by darksum
Replied by darksum on topic Re: Automatisierung der Gewichte
Thanks for helping me but it doesn't work. I added the line and nothing changed.
I created a product but the weight is set with 0.000 again.
I think I'm goin' crazy!!
I created a product but the weight is set with 0.000 again.
I think I'm goin' crazy!!
Please Log in or Create an account to join the conversation.
14 years 8 months ago #41823
by nicolas
Replied by nicolas on topic Re: Automatisierung der Gewichte
Make sure that you're editing the file for your back end template and not another template. Otherwise, it won't have any effect.
Please Log in or Create an account to join the conversation.
14 years 8 months ago #41824
by darksum
Replied by darksum on topic Re: Automatisierung der Gewichte
I changed the file "common" of the view product of the hathor template. this is my backend/administrator template.
Code:
<?php if(!isset($this->element->product_weight_unit)) $this->element->product_weight_unit=1.000; ?>
<input type="text" name="data[product][product_weight]" value="<?php echo @$this->element->product_weight; ?>"/><?php echo $this->weight->display('data[product][product_weight_unit]',@$this->element->product_weight_unit); ?>
Please Log in or Create an account to join the conversation.
14 years 8 months ago #41831
by nicolas
Replied by nicolas on topic Re: Automatisierung der Gewichte
Are you sure that your template is not bluestork which is the default one for the back end of Joomla ?
Please Log in or Create an account to join the conversation.
Time to create page: 0.062 seconds