Jump to content

[MODULE][FREE] Universal Payment Module


Recommended Posts

Hello

First i whant to say that i like this script.
But now i´m stuck with a problem.

I create 3 payments.
1. letter asaign to carrier "Letter" Link : http://prntscr.com/eza25w
2. cod asaign to carrier "cod" Link : http://prntscr.com/eza2hn
3. prepayments asaign to carrier "prepayments" Link : http://prntscr.com/eza2rl

This is the 3 carrier.
post-391014-0-18340000-1492806526_thumb.png

and the different produkts i add.
letter - weight: 0.001000 shipping letter
cod - weight: 1.000000 shipping cod
prepayments - weight: 10000.000000 shippipng prepayments

When i order some produkts i whant it to be the higest carrier.
And payments.

Now is my carrier Blue and i see all the payments..
carrier in cart : http://prntscr.com/eza8va
Payments: http://prntscr.com/eza9fa

This is a big problem for me, and i hope someone can help me
 

Share this post


Link to post
Share on other sites
  • Replies 690
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Universal Payment Module is module for creating an unlimited payment methods count through the admin tab withouth programming skills. With the help of the Universal Payment Module you can create a new

Hi, I do a change in this file: module/universalpay/controllers/front/validation.php   line 29-30                 array('%total%', '%order_number%','%CustomerName%','%customarLastname%','%custome

I already have fixed this to work also in mysql server previous to version 5.6.5.   Tested against Mysql version 5.0.95 and using Prestashop 1.6.0.14.   To test this version: download it from  h

Posted Images

Hello,

 

 

 

Thanks a lot for the free module it help me a lot, but I am having problem when I upload a logo image in the module back office.

 

 

I have do it a lot of times, but when I check in my online store it does not appear any logo ... (Deposito en efectivo cuenta rut)

 

¿Does need a special size? .. (By the way I have uploaded logos not so big like normal size)

 

 

PachVkV.png

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hello,

 

Thanks for this wonderful add-on. It works.I have 3 questions as i can't figure it out on my own.

 

 

1) When using %order_id% in 'Description success' it render order ID with hashtag '#' as #RGADERTAny idea on how to exclude hastag from it to get just RGADERT as a result?

 

2) Is it possible to render %total% amount without a currency sign/text? I do not want result as USD 145, USD 600 etc, but instead 145, 600 etc?

 

3) Which control value to use to show currency? I've tried %currency_id% but without success.

 

 

Any help will be highly appreciated.

 

Cheers.

 

Hi again!)

 

1) without hashtag '#'

https://github.com/prestalab/universalpay/blob/master/universalpay.php#L171

Replace on:

'' . $params['objOrder']->reference,

AND

https://github.com/prestalab/universalpay/blob/master/universalpay.php#L220

Replace on:

array(Tools::DisplayPrice($params['order']->total_paid), '' . $params['order']->reference),

 

2) without a currency sign/text

https://github.com/prestalab/universalpay/blob/master/controllers/front/payment.php#L43

Replace on:

array($total),

 

Have a nice day! ;)

Edited by cosmoll (see edit history)

Share this post


Link to post
Share on other sites

Is anyone working on 1.7 support? I have managed to install the module on 1.7, however, the payment systems menu is not there to configure the payment types.

Share this post


Link to post
Share on other sites
  • 4 weeks later...

Probably this has been asked before but I do not know how to search only in this thread.

 

I am looking for a way to restrict visability of this or any other payment option to either of the following two conditions:

 

  1. user has filled out field "company" when registering
  2. user has already checkout successfully and paid in the past (may be with option to set how many days in the past at minimum).

 

Any chance to integrate this easily?

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Hi For some reason after uploading in 1.6 , I cannot see the module in the backend option modules to configure.

Could you please help?

 

I have the same problem !!! Can anyone help us? : ((

 

I have Prestashop versions - 1.6.1.14

Edited by games-keys (see edit history)

Share this post


Link to post
Share on other sites
  • 3 weeks later...

@gamke-keys: have you renamed the content inside the zip-file?

 

It must contain universalpay instead of universalpay-master.

If you don't change this, you get a success message after install but the module is actually not loaded.

Edited by Scully (see edit history)

Share this post


Link to post
Share on other sites

Hello,

 

First of all i'd like to say thank you to the developer. I just started testing some days age but almost everything works good so far.

There is one little question, which was already asked at about page 15 some time ago.

 

When an order is created from frond end, the order gets the full payment method name stored in table ps_orders field payment.

When an order is created from back office, I haven't seen how I could manage the payment methode used. In ps_orders field payment it only shows the general text 'universal payment' but not its method.

 

Any change to overcome this?

best regards and thank for all help.

Share this post


Link to post
Share on other sites
  • 2 months later...

hey !

 

huge problem : i have install everything, setup the payment system, but it does not appears on front end in the end of the order.

 

i have check everything and i looks fine, but nothing appears. i have 3 payment systems, but only 2 appears... can you help me please ? urgent !!

post-1436548-0-79551000-1505652110_thumb.png

post-1436548-0-34884500-1505652111_thumb.png

post-1436548-0-80919000-1505652111_thumb.png

Share this post


Link to post
Share on other sites

Restrictions by customer group or country would be my first guess. => backoffice => modules => payment. Scroll down to the very end of this page and there you see further details.

Share this post


Link to post
Share on other sites
  • 2 months later...
On 25.07.2016 at 3:16 PM, sors said:

v3.0.0 for PrestaShop 1.7

  • PrestaShop 1.7 support

Before installation rename directory in archive to "universalpay"

 

https://github.com/prestalab/universalpay/archive/ps17.zip

 

PrestaShop v1.7.0.0 Beta2 have some problems with generating invoice. Also I cant find Show HTML button in description

not work with ps 1.7.4.2 ?

Share this post


Link to post
Share on other sites

Hello,

 

We've got a problem, I don't know if it's with Prestashop or your module, but it happen sometimes to have duplicate order. These orders have different order id but same cart id, they have exactly same order date. I don't know why it's happenning, it's not always. Have you got an idea ?

I'm using Prestashop v1.6.1.9 and universalpay v2.4.0

 

If want want more informations tell me.

 

Thanks

Share this post


Link to post
Share on other sites
  • 4 weeks later...

 

I installed Universalpay v3.0 with prestashop 1.7 when I click on Pay Systems tab

Captura.JPG.9715f67f30da30b6c8fc79a48964ea9b.JPG

I get error 500, this is PHP error: 

Fatal error: Call to a member function trans () on null in ....../classes/controller/AdminController.php on line 2754

some solution or suggestion??

Captura2.thumb.JPG.f4ea0ff4e3d6f98ad93e3344af8c225e.JPG

AdminController.php

Edited by eridamega (see edit history)

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Is there any version what works with PS 1.7.2.4 please???

 

the above mentioned github...ps1.7zip contains v2.2 instead of v3 and already v2.4 available on github..

 

so what is the truth? wich version do I need to use?

 

 

Share this post


Link to post
Share on other sites

Hello,
I've installed this module on PS 1.6.1.

I want to add a link to the button "I confirm my order", so the customer arrive to an external page.

Is it possible because I don't see this on the backend ?

 

Share this post


Link to post
Share on other sites
On 15/1/2018 at 12:09 AM, eridamega said:

 

I installed Universalpay v3.0 with prestashop 1.7 when I click on Pay Systems tab

Captura.JPG.9715f67f30da30b6c8fc79a48964ea9b.JPG

I get error 500, this is PHP error: 

Fatal error: Call to a member function trans () on null in ....../classes/controller/AdminController.php on line 2754

some solution or suggestion??

Captura2.thumb.JPG.f4ea0ff4e3d6f98ad93e3344af8c225e.JPG

AdminController.php

?? No one?? please

Edited by eridamega (see edit history)

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 2 weeks later...
On 03/03/2015 at 8:32 PM, sors said:
v 2.0.0
+ Added input fields before order confirmation
+ BugFix text after confirmation
+ Refractoring
 
Now you can add fields to order confirmation field and see values of this field in order admin page.
 
In pay system setting in descripton field set additional fields code:
  • press Source code button </>
  • paste inputs html code with name prefix up_

<div class="required form-group">
	<label for="up_name">Name <sup>*</sup></label>
	<input class="is_required form-control" required="required" type="text" id="up_name" name="up_name">
</div>
<div class="form-group">
	<label for="up_country">Country</label>
	<select id="up_country" class="form-control" name="up_country">
		<option value="France">France</option>
		<option value="Uganda">Uganda</option>
	</select>
</div>

This code add text input field with name "name" and select "country" (up_name and up_country). Also you can add differnt elements: checkbox, radio, textarea...

post-80483-0-39646300-1425410691_thumb.png

post-80483-0-83566700-1425410694_thumb.png

i want to put an input file, it is possible and how we can handle it ?

Share this post


Link to post
Share on other sites
On 15/2/2018 at 1:50 PM, r00t3r said:

Guys help me i install module but if i try to add custom payment give me page not found ps 1.7

 

 

pssupport2.png

pssupport.png

Buscando en Internet encontré estas posibles soluciones, las intenté pero ninguna me funcionó, alguna idea al respecto. Prestashop 1.7.3.0 Universal pay V3.0.0


Searching the Internet I found these possible solutions, I tried them but none of them worked for me, any ideas? Prestashop 1.7.3.0 Universal pay V3.0.0

Forum prestashop

h-hernes.fr...

Fundaa.com...

Alguna idea??

Share this post


Link to post
Share on other sites
  • 5 months later...
  • 2 weeks later...

Guys why in backoffice area in orders if i want to choose payment method here stay universal payment ..... ? How to fix this i want to select payment method from backoffice 

Share this post


Link to post
Share on other sites
  • 2 weeks later...

I made a fork with a patch to work on prestashop 1.7.4.2

https://github.com/dtix/universalpay/archive/master.zip

Download, extract, rename the inside folder (project folder) to universalpay, archive it to universalpay.zip

 

Or download the module https://github.com/dtix/universalpay/blob/download/universalpay.zip

It may conflict with other modules.

Edited by dtix (see edit history)

Share this post


Link to post
Share on other sites
  • 2 weeks later...
On 14.09.2018 at 6:04 PM, dtix said:

I made a fork with a patch to work on prestashop 1.7.4.2

https://github.com/dtix/universalpay/archive/master.zip

 

Thank You. I was able to install module but in config page I have only one switch and "Add payment methods on Modules>Pay Systems tab " alert. This link is broken and PaySytem Tab dos not exist. Can You point me how to get to this (payments configuration) page?

Share this post


Link to post
Share on other sites
1 hour ago, sitte said:

 

Thank You. I was able to install module but in config page I have only one switch and "Add payment methods on Modules>Pay Systems tab " alert. This link is broken and PaySytem Tab dos not exist. Can You point me how to get to this (payments configuration) page?

 

After module installation, on the left panel under the Payment, a link with "Pay Systems" is added. It should get you to the "Pay Systems" page where you have add(+) button (top right). The link is /admin/index.php?controller=AdminUniPaySystem&token=*** . If you don't use english, try to translate it first.  If you find the problem, let me know to add the solution in this fork, at least in the documentation.

Share this post


Link to post
Share on other sites

Unfortunately there is no menu position:

image.png.c49969327a2a39400c3fb37a9c829689.png

 

Opening url /AdminDir/index.php?controller=AdminUniPaySystem&token... gets me error:

Page not found:

image.png.bf2a48d2f8c040e5c23490a76b81b6f1.png

 

It looks like there is no such controller.

Prestashop 1.7.4.2, cache is disabled, cashe is manually cleared.

 

Share this post


Link to post
Share on other sites
44 minutes ago, sitte said:

Unfortunately there is no menu position:

image.png.c49969327a2a39400c3fb37a9c829689.png

 

Opening url /AdminDir/index.php?controller=AdminUniPaySystem&token... gets me error:

Page not found:

image.png.bf2a48d2f8c040e5c23490a76b81b6f1.png

 

It looks like there is no such controller.

Prestashop 1.7.4.2, cache is disabled, cashe is manually cleared.

 

I made now a version, download it from: https://github.com/dtix/universalpay/blob/master/universalpay.zip

Let me know if it works.

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
7 minutes ago, Soyons zen said:

 

Thank you friend, what do you change on the latter?

Nothing changed, it is the same. It wasn't properly to have that .zip file on the master branch. I uploaded on the other location. Let's not pollute this thread with our chat, write me a private message if is needed. Good luck with your project!

  • Like 1

Share this post


Link to post
Share on other sites

Hello. On order submision I get error like this. When I choose other payument method then it works fine but on any Universal Payment payment method I get the same error. Presta 1.7.4.2

up.jpg

Share this post


Link to post
Share on other sites
1 hour ago, sitte said:

Hello. On order submision I get error like this. When I choose other payument method then it works fine but on any Universal Payment payment method I get the same error. Presta 1.7.4.2

up.jpg

You have an older version, download a new one or modify the next file:

universalpay/controllers/front/payment.php

Line 54: $this->setTemplate('module:universalpay/views/templates/front/payment_execution.tpl');

 

Share this post


Link to post
Share on other sites
  • 2 months later...
On 9/25/2018 at 12:25 AM, dtix said:

I'm glad it helped.

 

I changed the link, just download and install.

https://github.com/dtix/universalpay/blob/download/universalpay.zip

 

Hi!)

I'm  installed on version 1.7.4.4

the module is installed, but the problem is repeated

On 9/24/2018 at 7:15 PM, dtix said:

 

After module installation, on the left panel under the Payment, a link with "Pay Systems" is added. It should get you to the "Pay Systems" page where you have add(+) button (top right). The link is /admin/index.php?controller=AdminUniPaySystem&token=*** . If you don't use english, try to translate it first.  If you find the problem, let me know to add the solution in this fork, at least in the documentation.

help please solve this problem

Share this post


Link to post
Share on other sites
On 12/10/2018 at 5:07 PM, cosmoll said:

Hi!)

I'm  installed on version 1.7.4.4

the module is installed, but the problem is repeated

help please solve this problem

I upgraded to 1.7.4.4 and my version works. What error do you have?

Share this post


Link to post
Share on other sites

Hello peps,

 

I have a big problem :

 

So I run Prestashop 1.6.1.23 and I have installed the file for the UniversalPay Module. I have created the 2 payments I wanted, both for different types of Zones. They are online. But when I make the checkout test, it won't appear. How can I solve this? Please help me

Share this post


Link to post
Share on other sites
  • 1 month later...

hello,

Your addons looks very intresting and I really need something exactly like it but when I tried to upload it to my prestashop 1.6.1.23 nothing is there i can't find it in modules??

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 2 months later...

Hi. I was wondering if you could help. I have installed the module, set up the payment on Admin side, I can see it and select it on the front side, but I get 500 Error as soon as I click 'Submit Order'. There is no confirmation page coming up and no e-mail going to the customer. I'm using PS 1.7.4.0. How do I fix it? I have installed the latest version I think.

Screen Shot 2019-04-23 at 10.46.59 AM.png

Share this post


Link to post
Share on other sites
  • 1 month later...

Hello,

I install version 3.0 but I have a problem on confirm order page :

Warning: Declaration of UniversalpayValidationModuleFrontController::setTemplate($default_template) should be compatible with ModuleFrontControllerCore::setTemplate($template, $params = Array, $locale = NULL) in mywebsite/modules/universalpay/controllers/front/validation.php on line 11
____________________________________________________
 (1/1) ContextErrorException

Warning: Cannot modify header information - headers already sent by (output started at mywebsite/modules/universalpay/controllers/front/validation.php:11)
____________________________________________________
in Tools.php line 196
____________________________________________________
at ToolsCore::redirect('mywebsite/confirmation-commande?id_cart=21&id_module=89&id_order=12&key=54f0e2063b7ed201ee35778018181902&id_universalpay_system=2')
in validation.php line 86
____________________________________________________
at UniversalpayValidationModuleFrontController->postProcess()
in Controller.php line 270
____________________________________________________
at ControllerCore->run()
in Dispatcher.php line 511
____________________________________________________
at DispatcherCore->dispatch()
in index.php line 28

Thanks for help

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 1 month later...
  • 4 weeks later...
  • 3 weeks later...
  • 1 month later...

Hi, I don't know if there is still somebody that it can help me because I can see that it's an old topic, but I'm trying because I really need help.

I have this module from 1 year and it's working great only that the writing it's covering the logo and it only happens with this module, the other payment modules are ok.

Where I can change this?

Attaching image... Thanks.

 

module.jpg

Share this post


Link to post
Share on other sites
  • 3 weeks later...
  • 4 months later...

Hello and congratulations on the module.  How do I modify the button to confirm purchase of the last phase of the process.  I get it on white background.  I want to change the background and color of the text.  Thank you very much. Prestashop 1.7

Share this post


Link to post
Share on other sites
  • 1 month later...

I hope that with the permission of, I have made some changes to the module.

Please @elia89 send mp and send module 


Now it works correctly in Prestashop 1.7.6 and tested in 1.7.7

Made changes to "install" when generating the database you need these fields

`id_configuration` INT(10) NOT NULL,

changed  "class tab parent"

'AdminParentPayment'

Several missing functions have been added to the controller file

 

I'm just going to add the modified files "Controller" and the code of the tables

Db::getInstance()->Execute('CREATE TABLE `' . _DB_PREFIX_ . 'universalpay_system` (
				`id_universalpay_system` INT(10) NOT NULL AUTO_INCREMENT,
				`id_order_state` INT( 10 ) NOT NULL DEFAULT \'' . Configuration::get('PS_OS_PREPARATION') . '\',
				`active` TINYINT(1) UNSIGNED NOT NULL DEFAULT \'0\',
				`position` INT(10) UNSIGNED NOT NULL DEFAULT \'0\',
				`id_cart_rule` INT(10) UNSIGNED NOT NULL DEFAULT \'0\',
				`cart_type` tinyint(4) NOT NULL DEFAULT \'0\',
                `date_add` datetime NOT NULL,
                `date_upd` datetime NOT NULL,
				`id_configuration` INT(10) NOT NULL,
				PRIMARY KEY (`id_universalpay_system`)
			) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8');
        Db::getInstance()->Execute('CREATE TABLE `' . _DB_PREFIX_ . 'universalpay_system_lang` (
				`id_universalpay_system` INT(10) UNSIGNED NOT NULL,
				`id_lang` INT(10) UNSIGNED NOT NULL,
				`name` VARCHAR(128) NOT NULL,
				`description_short` VARCHAR(255) NOT NULL,
				`description` TEXT NULL,
				`description_success` TEXT NULL,
				`id_configuration` INT(10) NOT NULL,
				UNIQUE INDEX `universalpay_system_lang_index` (`id_universalpay_system`, `id_lang`)
			) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8');

image.thumb.png.c2bd7da26c409839e9446ca9a392b121.png

Thanks for the module, I am still testing there may be some more error

public function hookAdvancedPaymentOptions($params)
    {
        if (!$this->active) {
            return;
        }
        if (!$this->checkCurrency($params['cart'])) {
            return;
        }
	$options = array();
        $paysystems = $this->getPaySystems($params);
		foreach ($paysystems as $paysystem) {
			$po = new PaymentOption();
			
            
            $po->setCallToActionText($paysystem['name'])
                ->setAction($this->context->link->getModuleLink($this->name, 'payment',
                    array('id_universalpay_system' => $paysystem['id_universalpay_system']), true))
                ->setLogo(Media::getMediaPath(_PS_IMG_ . 'pay/' . $paysystem['id_universalpay_system'] . '.jpg'))
                ->setModuleName($this->name);
            $options[] = $po;
        }
        return $options;
    }


Various design changes and adding files

Test video

image.thumb.png.55a90ab87f7d93cbd3279bd0fa7fd6fd.png

 

image.png

Edited by gusman126 (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites
  • 1 month later...

Hello to all the community, the universalpay module is magnificent.
I would like you to help me regarding 2 topics:

-I would like to be able to write several lines of text in the description when selecting the payment method. in this way.

uno.thumb.png.395d8519ac79f05bca1404792658d029.png

 


-I would also like to go directly to the order confirmation page (hiding the order summary page)

 

dos.thumb.png.44c6c32ea7d2a11d812c229438d68c13.png

 

Anyone who knows how to do it, thanks in advance.

 

 

 

Share this post


Link to post
Share on other sites
  • 4 weeks later...

after i install the module its not visible  its say pages not found i am using the latest prestashop

 

anybody could help me about this

 

thanks in advacne

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 2 weeks later...
On 5/16/2020 at 11:26 AM, gusman126 said:

I hope that with the permission of, I have made some changes to the module.

Please @elia89 send mp and send module 


Now it works correctly in Prestashop 1.7.6 and tested in 1.7.7

Made changes to "install" when generating the database you need these fields

`id_configuration` INT(10) NOT NULL,

changed  "class tab parent"

'AdminParentPayment'

Several missing functions have been added to the controller file

 

I'm just going to add the modified files "Controller" and the code of the tables


Db::getInstance()->Execute('CREATE TABLE `' . _DB_PREFIX_ . 'universalpay_system` (
				`id_universalpay_system` INT(10) NOT NULL AUTO_INCREMENT,
				`id_order_state` INT( 10 ) NOT NULL DEFAULT \'' . Configuration::get('PS_OS_PREPARATION') . '\',
				`active` TINYINT(1) UNSIGNED NOT NULL DEFAULT \'0\',
				`position` INT(10) UNSIGNED NOT NULL DEFAULT \'0\',
				`id_cart_rule` INT(10) UNSIGNED NOT NULL DEFAULT \'0\',
				`cart_type` tinyint(4) NOT NULL DEFAULT \'0\',
                `date_add` datetime NOT NULL,
                `date_upd` datetime NOT NULL,
				`id_configuration` INT(10) NOT NULL,
				PRIMARY KEY (`id_universalpay_system`)
			) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8');
        Db::getInstance()->Execute('CREATE TABLE `' . _DB_PREFIX_ . 'universalpay_system_lang` (
				`id_universalpay_system` INT(10) UNSIGNED NOT NULL,
				`id_lang` INT(10) UNSIGNED NOT NULL,
				`name` VARCHAR(128) NOT NULL,
				`description_short` VARCHAR(255) NOT NULL,
				`description` TEXT NULL,
				`description_success` TEXT NULL,
				`id_configuration` INT(10) NOT NULL,
				UNIQUE INDEX `universalpay_system_lang_index` (`id_universalpay_system`, `id_lang`)
			) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8');

image.thumb.png.c2bd7da26c409839e9446ca9a392b121.png

Thanks for the module, I am still testing there may be some more error


public function hookAdvancedPaymentOptions($params)
    {
        if (!$this->active) {
            return;
        }
        if (!$this->checkCurrency($params['cart'])) {
            return;
        }
	$options = array();
        $paysystems = $this->getPaySystems($params);
		foreach ($paysystems as $paysystem) {
			$po = new PaymentOption();
			
            
            $po->setCallToActionText($paysystem['name'])
                ->setAction($this->context->link->getModuleLink($this->name, 'payment',
                    array('id_universalpay_system' => $paysystem['id_universalpay_system']), true))
                ->setLogo(Media::getMediaPath(_PS_IMG_ . 'pay/' . $paysystem['id_universalpay_system'] . '.jpg'))
                ->setModuleName($this->name);
            $options[] = $po;
        }
        return $options;
    }


Various design changes and adding files

Test video

image.thumb.png.55a90ab87f7d93cbd3279bd0fa7fd6fd.png

 

 

image.png

Puedes decirme como lo haz hecho, veo que te funciona pero no comprendo si tengo que hacer alguna acción en la base de datos, gracias

Share this post


Link to post
Share on other sites

Hola nuevamente, ahora estoy intentando instalar pero me dice esto:

(1/1) FatalErrorException

Compile Error: Cannot declare class ComposerAutoloaderInita6d8adf0dc31bf7417b437f6d358ad2f, because the name is already in use

in autoload_real.php line 5

 

¿Cómo hago para cambiar este numero?

 

Esta parte que haz hecho, lo ejecutas en PhpMyAdmin?

Db::getInstance()->Execute('CREATE TABLE `' . _DB_PREFIX_ . 'universalpay_system` ( `id_universalpay_system` INT(10) NOT NULL AUTO_INCREMENT, `id_order_state` INT( 10 ) NOT NULL DEFAULT \'' . Configuration::get('PS_OS_PREPARATION') . '\', `active` TINYINT(1) UNSIGNED NOT NULL DEFAULT \'0\', `position` INT(10) UNSIGNED NOT NULL DEFAULT \'0\', `id_cart_rule` INT(10) UNSIGNED NOT NULL DEFAULT \'0\', `cart_type` tinyint(4) NOT NULL DEFAULT \'0\', `date_add` datetime NOT NULL, `date_upd` datetime NOT NULL, `id_configuration` INT(10) NOT NULL, PRIMARY KEY (`id_universalpay_system`) ) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8'); Db::getInstance()->Execute('CREATE TABLE `' . _DB_PREFIX_ . 'universalpay_system_lang` ( `id_universalpay_system` INT(10) UNSIGNED NOT NULL, `id_lang` INT(10) UNSIGNED NOT NULL, `name` VARCHAR(128) NOT NULL, `description_short` VARCHAR(255) NOT NULL, `description` TEXT NULL, `description_success` TEXT NULL, `id_configuration` INT(10) NOT NULL, UNIQUE INDEX `universalpay_system_lang_index` (`id_universalpay_system`, `id_lang`) ) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8');

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 2 weeks later...

gracias Diego, muy útil este aporte, también busco uno que me permita múltiples transferencias de pago, ya que mi emprendimiento tengo varias cuentas de banco como opción para mis clientes, o por lo menos hacerle llegar por correo las cuentas donde ellos pueden transferir, gracias

Edited by nsaavedra2006 (see edit history)

Share this post


Link to post
Share on other sites
12 hours ago, nsaavedra2006 said:

gracias Diego, muy útil este aporte, también busco uno que me permita múltiples transferencias de pago, ya que mi emprendimiento tengo varias cuentas de banco como opción para mis clientes, o por lo menos hacerle llegar por correo las cuentas donde ellos pueden transferir, gracias

Si sigues los pasos puedes utilizar este mismo módulo para hacer varias cuentas de pago, solo tocas un par de datos pero la base es exactamente la misma... la idea es que en el checkout en ves de poner "pagar por la tienda de María" podes cambiar por pagar por "Transferencia en Banco XXXXX"... y funcionaría igual... si puedo y me da tiempo hago un tutorial sobre este tema ya que creo que pude ser útil teniendo en cuenta varios Bancos... Buena idea.

En cuanto lo tenga te lo comunico. 

Saludos

Share this post


Link to post
Share on other sites
  • 1 month later...

Hi, i get an issue when an order is confirmed using Universal Pay.

I set the Order Status for "Preparation" but when an order is placed, the status order set is "Payment Error".

Can you help me to solve this?

Share this post


Link to post
Share on other sites
  • 3 weeks later...

I was trying to uninstall the UniversalPay module and my whole back office crashed! Now showing HTTP error 500. My front office is working! I am seriously surprised! Does anyone of you have any solution for that?

 

When this prestashop v1.7 is going to at least a bit stable and stop crashing!!!

Share this post


Link to post
Share on other sites
15 hours ago, num47 said:

I was trying to uninstall the UniversalPay module and my whole back office crashed! Now showing HTTP error 500. My front office is working! I am seriously surprised! Does anyone of you have any solution for that?

 

When this prestashop v1.7 is going to at least a bit stable and stop crashing!!!

I don't work with PS 1.7 so I don't know but I think you have to try to clean cache...

Share this post


Link to post
Share on other sites
On 11/2/2020 at 1:05 PM, AlainR said:

I don't work with PS 1.7 so I don't know but I think you have to try to clean cache...

I have figured it out! It messed up a .htaccess file. I had to regenerate that to get that work again. Thank you for your kind reply. 

Share this post


Link to post
Share on other sites
  • 3 weeks later...
  • 1 month later...
  • 1 month later...

The fix is not ease, make backup before You try.

 

1. Add new tab to menu:
add record to ps_tab

INSERT INTO `ps_tab` (`id_parent`, `position`, `module`, `class_name`, `active`, `hide_host_mode`, `icon`, `enabled`, `route_name`) VALUES
(XXX, 3, 'universalpay', 'AdminUniPaySystem', 1, 0, '', 1, '');

XXX is the number of AdminPayment record. For me it was 63

2. Add roles to prestashop access system:
add to ps_authorization_role

INSERT INTO `ps_authorization_role` (`id_authorization_role`, `slug`) VALUES
(1393, 'ROLE_MOD_MODULE_UNIVERSALPAY_CREATE'),
(1394, 'ROLE_MOD_MODULE_UNIVERSALPAY_READ'),
(1395, 'ROLE_MOD_MODULE_UNIVERSALPAY_UPDATE'),
(1396, 'ROLE_MOD_MODULE_UNIVERSALPAY_DELETE'),
(1401, 'ROLE_MOD_TAB_ADMINUNIPAYSYSTEM_READ'),
(1402, 'ROLE_MOD_TAB_ADMINUNIPAYSYSTEM_UPDATE'),
(1403, 'ROLE_MOD_TAB_ADMINUNIPAYSYSTEM_DELETE'),
(1404, 'ROLE_MOD_TAB_ADMINUNIPAYSYSTEM_CREATE');

You should adjust id_autorisation_role values

3. add to ps_access

INSERT INTO `ps_access` (`id_profile`, `id_authorization_role`) VALUES
(1, 1393),
(1, 1394),
(1, 1395),
(1, 1396),
(1, 1401),
(1, 1402),
(1, 1403),
(1, 1404);

You should adjust id_profile values.

I hope it helps. I wasted 2 days :P

 

 

 

Share this post


Link to post
Share on other sites
  • 1 month later...
Posted (edited)

Hi there! I am using ps 1.7.7.3 and the input fields (up_fields) are no longer displayed in the orders in the backoffice. Anyone can fix it?

Edited by Lucas1 (see edit history)

Share this post


Link to post
Share on other sites
  • 2 weeks later...
On 4/8/2021 at 7:14 PM, Lucas1 said:

Hi there! I am using ps 1.7.7.3 and the input fields (up_fields) are no longer displayed in the orders in the backoffice. Anyone can fix it?

Hey, What's the latest version of this module and how to add input fields to it? Would you kindly share it with me? I have been looking out for this.

 

Thanks

Share this post


Link to post
Share on other sites
6 hours ago, num47 said:

Hey, What's the latest version of this module and how to add input fields to it? Would you kindly share it with me? I have been looking out for this.

 

Thanks

Hi! latest version is 3.1.0

Share this post


Link to post
Share on other sites
On 4/8/2021 at 7:14 PM, Lucas1 said:

Hi there! I am using ps 1.7.7.3 and the input fields (up_fields) are no longer displayed in the orders in the backoffice. Anyone can fix it?

I have updated my shop to the 1.7.7.3 and i am not getting the informations of the input field either in my back office. It would be great to have this function. I am going to look into it to find a fix. But, i need other people’s help about it. I mean, i am not a professional coder! 

Share this post


Link to post
Share on other sites
Posted (edited)
On 4/8/2021 at 7:14 PM, Lucas1 said:

Hi there! I am using ps 1.7.7.3 and the input fields (up_fields) are no longer displayed in the orders in the backoffice. Anyone can fix it?

I get the data in the Database. It displays something like this: 

a:2:{s:4:"name";s:16:"ASDAASDAASDAASDA";s:7:"country";s:6:"France";}

I have updated few things there and now it is showing the tab there in the order page but it is not showing the data there. I need a bit help to fix this. Can anyone give some idea how to call the values and display them in the right place? Thanks

Edited by num47
Update in research (see edit history)

Share this post


Link to post
Share on other sites
On 4/18/2021 at 3:48 PM, num47 said:

I get the data in the Database. It displays something like this: 


a:2:{s:4:"name";s:16:"ASDAASDAASDAASDA";s:7:"country";s:6:"France";}

I have updated few things there and now it is showing the tab there in the order page but it is not showing the data there. I need a bit help to fix this. Can anyone give some idea how to call the values and display them in the right place? Thanks

what did you update to see the tab in order page? i also see the data in database in that format 

Share this post


Link to post
Share on other sites