Jump to content
  • 0
herwaldi

Dodatkowe SELECt w PrestaShop 1.7

Question

Witam,

potrzebuje wprowadzić pewną rzecz w Preście - mianowicie:

Posiadam swój moduł, mam w nim hooka w którym mam pole SELECT - wyrzucam sobie w nim pewne dane:

public function hookDisplayAdminProductsMainStepRightColumnBottom() {
    $this->context->smarty->assign(array(
        'products' => $products,
    ));

	return $this->display(__FILE__, 'views/templates/hook/selector.tpl');
}

Następnie printuje go sobie w produkcie - w adminie w danym miejscu:

<div class="form-group mb-4" id="arlity">
	<h2>Arlity</h2>
	<div id="select-arlity">
	  	<div id="select-arlity-content">
	    	<select name="arlity" id="arlity">
			        <option>Wybierz</option>
			    {foreach from=$products item=product}
			        <option value="{$product->code}">
			            {$product->name} | {$product->code}
			        </option>
			    {/foreach}
			</select>
	    </div>
	</div>
</div>

Teraz chciałbym aby ten mój wybór z pola SELECT zapisał się w bazie - jakieś rady jak to zrobić? Zatkałem się i za bardzo nie wiem jak..

Edited by herwaldi (see edit history)

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More