Jump to content

mspace

Members
  • Posts

    36
  • Joined

  • Last visited

Profile Information

  • Activity
    Developer

mspace's Achievements

Newbie

Newbie (1/14)

4

Reputation

1

Community Answers

  1. Καλημέρα, Ξέρει κανείς πως μπορεί να γίνει αυτό στο 1.6.0.9?
  2. Καλημέρα και χρόνια πολλά! 'Εχω κάποια προϊόντα τα οποία έχουν Combination. 'Εχω φτιάξει σωστά τα attributes. To θέμα είναι ότι όλα τα attributes έχουν επιρροή στην τιμή όταν όμως επιλέγω πάνω από ένα attribute δεν προσθέτει στην τιμή την αλλαγή. Ξέρει κανείς γιατί μπορεί να συμβαίνει αυτό?
  3. Hello I have two sets of attributes in one of my products. Both of them are dropdown list. I have set that they are going to have impact on price but only the first dropdown list effects the price of the product. Can someone explain why does this happen? I use prestashop 1.6.0.9 thank you
  4. Για όποιον ενδιαφέρεται για το τιμολόγιο στα ελληνικά βρήκα εδώ http://www.prestashop.com/forums/topic/155422-module-download-invoice-in-customer-language/?p=780034&do=findComment&comment=780034 την παρακάτω λύση, παίζει και στο 1.6.0.9 in classes\pdf\HTMLTemplate.php : protected function getTemplate($template_name) { $template = false; $default_template = _PS_PDF_DIR_.'/'.$template_name.'.tpl'; $overriden_template = _PS_THEME_DIR_.'pdf/'.$template_name.'.tpl'; if (file_exists($overriden_template)) $template = $overriden_template; else if (file_exists($default_template)) $template = $default_template; // SELECT ORDER LANGUAGE FOR THE TEMPLATE if ( $this->order ) Context::getContext()->language = new Language($this->order->id_lang); return $template; }
  5. Hello (sorry for posting it also in this forum but i didn't get any help) I have created a custom form so the customer can order custom products. In the form I have a text field that is the product id and the user has to fill it with the relate product id. I need to grab the id from the field in the <a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product="{$product.id_product|intval}"> Is there any way so to pass the value from the field in the data-id-product="{$product.id_product|intval}"? I managed to pass the product id to data-id-product. I pass it to a variable to a php file. $prodid=$_POST['co_prodcod']; Then I echo the button echo "<a class='button ajax_add_to_cart_button btn btn-default' href='{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}' rel='nofollow' title='{l s='Add to cart'}' data-id-product='{$prodid}'> But now I cannot pass the product id to : href='{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}' so to begin the add to cart functionality Can someone help with this problem?
  6. Hello (sorry for posting it also in this forum but i didn't get any help) I have created a custom form so the customer can order custom products. In the form I have a text field that is the product id and the user has to fill it with the relate product id. I need to grab the id from the field in the <a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product="{$product.id_product|intval}"> Is there any way so to pass the value from the field in the data-id-product="{$product.id_product|intval}"? I managed to pass the product id to data-id-product. I pass it to a variable to a php file. $prodid=$_POST['co_prodcod']; Then I echo the button echo "<a class='button ajax_add_to_cart_button btn btn-default' href='{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}' rel='nofollow' title='{l s='Add to cart'}' data-id-product='{$prodid}'> But now I cannot pass the product id to : href='{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}' so to begin the add to cart functionality Can someone help with this problem?
  7. I managed to pass the product id to data-id-product. I pass it to a variable to a php file. $prodid=$_POST['co_prodcod']; Then I echo the button echo "<a class='button ajax_add_to_cart_button btn btn-default' href='{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}' rel='nofollow' title='{l s='Add to cart'}' data-id-product='{$prodid}'> But now I cannot pass the product id to : href='{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}' so to begin the add to cart functionality Can someone help with this problem?
  8. Καλημέρα, Εχω φτιάξει μια φόρμα που έχει διάφορα πεδία. (Βασικά τη χρειάζομαι για custom παραγγελίες).Στο ένα από αυτά ο χρήστης πρέπει να εισάγει το product id. Στο τέλος της φόρμας έχω βάλει το κουμπί "Αγορά" που κάνει το εξής <a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product="{$product.id_product|intval}"> <span>{l s='Add to cart'}</span> </a> Ξέρει κανείς πως θα μπορούσα να περάσω από το πεδίο product id στο data-id-product? (Σημείωση: Όταν βάζω καρφωτά το id ξεκινάει η διαδικασία του καλαθιού μια χαρά δεν έχει δλδ κάτι ο κώδικας.)
  9. Hello I have created a custom form so the customer can order custom products. In the form I have a text field that is the product id and the user has to fill it with the relate product id. I need to grab the id from the field in the <a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product="{$product.id_product|intval}"> Is there any way so to pass the value from the field in the data-id-product? thank you
  10. Hello I have created a custom form for custom products orders where the user has to fill the reference code in order to complete his order. I also have created a php file where I display the fields that he has complete. I would like to display the product that he has order relate to the reference code. Could someone help with select query that I have to write in order to display the product? Thank you very much
  11. Hello I have made a custom form which work like an order page which do the action at action="../themes/default-bootstrap/order.php" The sumbition works fine but at the address bar after the submit shows the full url. Is there any way to hide this info for security reasons. thank you
  12. είναι εντάξει τώρα ήθελε το include(dirname(__FILE__).'/../../header.php'); include(dirname(__FILE__).'/../../footer.php');
  13. Δούλεψε τελικά το insert βάζοντας στη φόρμα στο tpl αρχείο post="../themes/default-bootstrap/action.php" μάλλον όμως δεν είναι και ο πιο ορθόδοξος τρόπος γιατί στο url εμφανίζει όλο το path. Ξέρεις πως μπορεί τώρα η σελίδα μου action.php να περικλείεται με το template και να μην είναι μια λευκή σελίδα?
  14. καλημέρα, ευχαριστώ για την απάντηση. Βασικά έχω και τα 2 αρχεία στον ίδιο φάκελο. Στον φάκελο του default theme. Δοκίμασα τη λύση σου αλλά πάλι το ίδιο μήνυμα 404 page not found Στο url έβαλα και το .../el/index.php?action.php αλλά πάλι τίποτα.
×
×
  • Create New...