Jump to content

How it works Prestashop?


Recommended Posts

I would add several things to my store (and share pitch and all), but not very well how it works Prestashop especially in the aspect variables. While handling PHP and need help with:

1 .- I want to "Clients"> "Bill" appears a button to generate an invoice (or order) to largest (or supplier) this requires:

- Edit the file / admin / tabs / AdminInvoices.php adding about these lines:

<form action="http://www.eluniversodelperro.com/tienda/classes/PDF2.php" method="post">
'.$this->l('From:').' 

                   <input type="text" size="4" maxlength="10" name="date_from" value="'.(date('Y-m-d')).'" style="width: 120px;" /> *

'.$this->l('Format: 2007-12-31 (inclusive)').'

'.$this->l('To:').' 

                   <input type="text" size="4" maxlength="10" name="date_to" value="'.(date('Y-m-d')).'" style="width: 120px;" /> *

'.$this->l('Format: 2008-12-31 (inclusive)').'


                   <input type="submit" value="'.$this->l('Generar Factura PDF Proveedor').'" name="submitPrint" class="button" />

* '.$this->l('Required fields').'
           </form>



If the Action of the form I put it so it does not work, since I want is acting on the / classes/PDF2.php rather than on PDF.php
I intend that the bill will place the credentials of the supplier (that I got it with product_supplier_reference) and also want to place the supplier's price (does not like, whenever I tried I received 0) and total orders (total without VAT, total VAT, etc.), generated at the end of the "Bill", ie on the last page.

2 .- I want to add a section "My Surveys" to the user menu.

- For this we must modify the / modules / myaccount / and there to add a link to the file or encuestas.php encuestas.tpl
The idea is that 5 days after accepting the payment (by the store), you send an email to the customer saying that the survey is already available, and that if X ends receive Reward Points (reward points).

To achieve this I need to create a table in the DB Prestashop, which appears on every 2 fields: IdEncuesta (autonomerico would not, would be related to the OrderID) and State (to see if still available or is completed), plus from various fields for the answers.

- First need to create a file. php for me to look in the DB all orders, and if anyone has spent more than 5 days since then, I send the relevant emails. For this we need to add a daily call to that file in the CRON of CPanel. - Then, the customer would go to see "My Surveys" and there appear all that has (Completed or not completed), and may realizarlaas from there with a single click (for it would have to create the poll or survey encuesta.tpl . php) and will pretend that the survey was integrated into the store (in the middle) and consist of the following parties (that and would depend on directors).

The Clint gives his opinion on his experience in the purchase> He gives us his opinion about what you think of the store (visual, find things, etc.)> Suggestions and complaints or improvements. (paragraph my data would not be necessary, because we already have customer data).

Should also be added in the "Statistics" of the Administrator, a link where visually analize the opinion of customers, make a list of suggestions and complaints (which customer has placed, at what time, etc.). I think knowing the client's opinion in this way would be a very good option for improving our store over the competition.

Once the survey (less than 5 min and in just 3 steps), automatically add points to your Account and would return to "My Surveys"

My basic problem (or problems) is that because I did not create these fields and the database (Prestashop), not as they are called fields, etc.

I would be willing to set all this without any problem because I need it for my shop, in what would have more problems is to place this as "modules" or similar because I did not create them.

Thank you very much to all who can help.

Greetings

Link to comment
Share on other sites

×
×
  • Create New...