× 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.

Add to card unterhalb des Produktes

  • Posts: 28
  • Thank you received: 1
6 years 2 months ago #287795

-- Joomla version -- : 3.8.5

Hallo!
Ich möchte gern den "add to cart" button unterhalb des Produktes anbringen. Gibt es dazu irgendwelche Einstellung?

Dann weiß ich zwar, dass man "add to card" ändern kann - Namen - aber ich weiß nicht mehr wo und ich google schon so dermaßen ...

Ich würd mich sehr über Hilfe freuen, dank
liebe Grüße

PS: hurra, die fliege bei lousyfool ist weg!

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

  • Posts: 2143
  • Thank you received: 747
6 years 2 months ago #287814

Hi,

Layout-Anpassungen wie diese sind hier beschrieben: www.hikashop.com/support/documentation/1...-display.html#layout
(Die deutsche Übersetzung ist nicht so tolle... am besten das englische Original lesen.)

Also:
1. Je nachdem welche Produkt-Darstellung du nutzt (Default, Reverse oder Tabular), im HikaShop-Backend -> Anzeige -> Ansichten die entsprechende Datei "product -> show_default (oder show_reverse oder show_tabular" für dein Frontend-Template finden und editieren.
2. Halte Ausschau nach dem Block

if(empty($this->element->characteristics) || $this->params->get('characteristic_display') != 'list') {
?>
		<div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main"><?php
			$this->row =& $this->element;
			$this->ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\'' . (int)$this->element->product_id . '\',field,1' . $form . ',\'cart\'); } else { return false; }';
			$this->setLayout('quantity');
			echo $this->loadTemplate();
		?></div>
<?php
	}
3. Diesen Block ausschneiden und an anderer Stelle in der Datei einfügen... eben dort, wo der "Add to Cart"-Button erscheinen soll, z.B. innerhalb des Bereichs <div id="hikashop_product_bottom_part" class="hikashop_product_bottom_part"> ...... </div>

Achtung:
- Es sollte genau der o.g. Block sein, nicht mehr oder weniger Zeichen!
- Der Block beginnt und endet mit PHP-Code, muss an anderem Ort also so oder so auch wieder in "<?php" und "?>" eingeschlossen sein!


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: Paradeisa

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

  • Posts: 28
  • Thank you received: 1
6 years 2 months ago #287817

der Warenkorb rührt und rührt sich nicht von der stelle :-( ... ist default ... ich müsste auch im richtigen template sein ... weil wenn ich einiges raus nehme, ist die seite leer ... aber wenn ich nur dieses teil verschiebe, der blöde warenkorb bleibt und bleibt da wo er ist ... rechts oben :-(

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

  • Posts: 2143
  • Thank you received: 747
6 years 2 months ago #287824

Hi,

eine "leere" Seite bedeutet einen PHP-Error... ja, und in deinem Fall, dass du zwar einen solchen Fehler gemacht hast beim Ausschneiden/Einfügen, aber zumindest in der richtigen Datei rumwurschtelst.
Natürlich kannst du den Button nicht an neuer Stelle bewundern, wenn du einen PHP-Error machst = die Seite leer bleibt. Und natürlich erscheint der Button wieder an alter Stelle, wenn du deine Änderungen rückgängig machst.

Also, wie schon gesagt: Aufpassen, dass beim Verschieben der PHP-Code intakt bleibt!


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: Paradeisa

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

  • Posts: 28
  • Thank you received: 1
6 years 2 months ago #287825

ja eh ..... ich hab dann eh richtig ausgeschnitten und unten eingefügt, dann unterhalb, dann dahin dorthin .... der warenkorb rührt sich nicht. das php error hab ich grad nur angeschrieben, dass ich in der richtigen datei bin ... na ich probier mal weiter ...

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

  • Posts: 2143
  • Thank you received: 747
6 years 2 months ago #287826

Hast du irgendwelchen Cache aktiviert, z.B. auf dem Webserver, in Joomla, im Joomla-Template oder so? Dann nach dem Editieren leeren, sicherheitshalber auch deinen Browser-Cache.

Bei anhaltenden Problemen schick mir ne PM incl Email-Adresse und/oder Skype o.ä.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: Paradeisa

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

  • Posts: 28
  • Thank you received: 1
6 years 2 months ago #287834

cache hab ich probiert .... also ich kopier mal den code ... ja, mach ich ... tut mir leid ...

<div id="hikashop_product_description_main" class="hikashop_product_description_main" itemprop="description"><?php
echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description));
?></div>
<span id="hikashop_product_url_main" class="hikashop_product_url_main"><?php
if(!empty($this->element->product_url)) {
echo JText::sprintf('MANUFACTURER_URL', '<a href="' . $this->element->product_url . '" target="_blank">' . $this->element->product_url . '</a>');
}
?></span>

<?php
if($this->params->get('characteristic_display') != 'list') {
$this->setLayout('show_block_characteristic');
echo $this->loadTemplate();
?>
<br />
<?php } ?>

<?php
$this->setLayout('show_block_product_files');
echo $this->loadTemplate();
?>

<?php if(!empty($this->element->extraData->bottomMiddle)) { echo implode("\r\n",$this->element->extraData->bottomMiddle); } ?>
<?php if(!empty($this->element->extraData->bottomEnd)) { echo implode("\r\n",$this->element->extraData->bottomEnd); } ?>
</div>

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

  • Posts: 2143
  • Thank you received: 747
6 years 2 months ago #287843

Tja, der Code, den du hier postest, hat rein gar nichts mit dem "Add to Cart"-Button oder meinem ersten Post zu tun.

Aber nun sind wir ja anderweitig in Kontakt... also schaun mer mal... ;)


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Last edit: 6 years 2 months ago by lousyfool. Reason: Typo

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

Time to create page: 0.079 seconds
Powered by Kunena Forum