Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switches on 'showInStore' for all config options to allow full multi-store functionality #117

Merged
merged 2 commits into from
Jun 4, 2018

Conversation

jonrandy
Copy link
Contributor

@jonrandy jonrandy commented May 16, 2018

1. Objective

Make sure all config settings for Omise Magento are available down to the store level - to facilitate full multistore capability. Also add some details about the current store in the charge metadata

2. Description of change

adminhtml/system.xml modified to turn on all showInStore switches.
paymentdatabuilder.php modified to add store info to charge metadata

3. Quality assurance

I set up a sample site with multiple stores and views, and different Omise Magento settings for each store view. I then made an order from each store view, checking that the payment options were correct for each view, and that the correct store info had been added to the charge metadata in each case

4. Impact of the change

No visible changes will be seen when this update is installed unless installed on a site that has multiple stores/views - in which case the merchant will have control over the plugin on a per store basis

image

👆 When you select any 'scope' after the update, the Omise options will be available for changing. They were only available at the top level before

5. Priority of change

Normal

6. Additional Notes

It's not raining today, but wow is it hot! 🔥

@guzzilar
Copy link
Contributor

guzzilar commented Jun 4, 2018

@jonrandy can you provide a screenshot of, 'what the setting page looks like' with and without these change?
Also would be nice to have a screenshot of the change in the charge metadata.

Copy link
Contributor

@guzzilar guzzilar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonrandy There is a new configuration for Alipay in the master branch. Could you rebase n update those configs?
Thanks

@jonrandy
Copy link
Contributor Author

jonrandy commented Jun 4, 2018

@guzzilar Did I do that right?

@guzzilar
Copy link
Contributor

guzzilar commented Jun 4, 2018

@jonrandy Uhmm.. probably no. Just git rebase master is enough actually.

@jonrandy
Copy link
Contributor Author

jonrandy commented Jun 4, 2018

I thought that's what I did. A drag and drop rebase in Gitkraken. All the stuff seems to be there now

@jonrandy
Copy link
Contributor Author

jonrandy commented Jun 4, 2018

Done?

jonrandy added 2 commits June 4, 2018 14:31
…store functionality

Also addes store_id and store_name to metadata in the Charge object
@jonrandy jonrandy merged commit 8c9a4c9 into master Jun 4, 2018
@jonrandy jonrandy deleted the multistore branch June 4, 2018 07:37
@jonrandy jonrandy restored the multistore branch June 4, 2018 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants